Standard library / crypto/x509
crypto/x509.InsecureAlgorithmError
Error containing the rejected signature algorithm; do not bypass it. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
type InsecureAlgorithmError SignatureAlgorithmWorking Example
Example Snippetgo
package main
import ( "crypto/x509" "fmt")
func main() { e := x509.InsecureAlgorithmError(x509.MD5WithRSA) fmt.Println(x509.SignatureAlgorithm(e) == x509.MD5WithRSA)}
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) }}