Standard library / crypto/x509

crypto/x509.InsecureAlgorithmError.Error()

Reports a rejected insecure signature algorithm. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func (e InsecureAlgorithmError) Error() string

Return Value

string

Result as described above; check any returned error before use.

Working Example

Example Snippetgo
package main
import (  "crypto/x509"  "fmt")
func main() { e := x509.InsecureAlgorithmError(x509.MD5WithRSA); fmt.Println(len(e.Error()) > 0) }
func must[T any](v T, e error) T {  if e != nil {    panic(e)  }  return v}func check(e error) {  if e != nil {    panic(e)  }}
Go Reference