Standard library / crypto/tls
tls.CurveP521
Key-exchange group identifier for CurveP521; not a signature scheme or cipher suite. The example prints the numeric identifier, not a negotiated value. Expected stdout: '25\n'.
Formal Syntax & Structure
go syntaxgo
const CurveP521 CurveID = 25Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { fmt.Println(uint16(tls.CurveP521)) }
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) }}