Standard library / crypto/x509

crypto/x509.ErrUnsupportedAlgorithm

Signature verification algorithm is not implemented. Synthetic sentinel comparison; do not treat unsupported algorithms as valid. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
var ErrUnsupportedAlgorithm error

Working Example

Example Snippetgo
package main
import (  "crypto/x509"  "fmt")
func main() { fmt.Println(x509.ErrUnsupportedAlgorithm != nil) }
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