Standard library / crypto/tls
tls.TLS_CHACHA20_POLY1305_SHA256
IANA cipher suite identifier TLS_CHACHA20_POLY1305_SHA256. TLS 1.3 suite; Config.CipherSuites does not configure TLS 1.3. The example prints the numeric identifier, not a negotiated value. Expected stdout: '4867\n'.
Formal Syntax & Structure
go syntaxgo
const TLS_CHACHA20_POLY1305_SHA256 uint16 = 4867Working Example
Example Snippetgo
package main
import ( "crypto/tls" "fmt")
func main() { fmt.Println(uint16(tls.TLS_CHACHA20_POLY1305_SHA256)) }
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) }}