Standard library / crypto/tls
tls.ECDSAWithSHA1
TLS signature scheme identifier ECDSAWithSHA1. SHA-1 is obsolete for new signatures. The example prints the numeric identifier, not a negotiated value. Expected stdout: '515\n'.
Formal Syntax & Structure
go syntaxgo
const ECDSAWithSHA1 SignatureScheme = 515Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { fmt.Println(uint16(tls.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) }}