Standard library / crypto/x509

crypto/x509.ECDSAWithSHA1

Signature algorithm identifier ECDSAWithSHA1. Legacy or unsupported algorithm; do not select for new signatures. Expected stdout: '9\n'.

Formal Syntax & Structure

go syntaxgo
const ECDSAWithSHA1 SignatureAlgorithm = 9

Working Example

Example Snippetgo
package main
import (  "crypto/x509"  "fmt")
func main() {  // Historical interoperability demonstration only. Prefer modern protocols for new designs.  fmt.Println(int(x509.ECDSAWithSHA1))}
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