MCPcopy Create free account
hub / github.com/XTLS/REALITY / init

Function init

handshake_server_tls13.go:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78)
79
80func init() {
81 certificate := x509.Certificate{SerialNumber: &big.Int{}}
82 certificateMldsa65 := x509.Certificate{SerialNumber: &big.Int{}, ExtraExtensions: []pkix.Extension{{Id: []int{0, 0}, Value: empty[:3309]}}}
83 _, ed25519Priv, _ = ed25519.GenerateKey(rand.Reader)
84 signedCert, _ = x509.CreateCertificate(rand.Reader, &certificate, &certificate, ed25519.PublicKey(ed25519Priv[32:]), ed25519Priv)
85 signedCertMldsa65, _ = x509.CreateCertificate(rand.Reader, &certificateMldsa65, &certificateMldsa65, ed25519.PublicKey(ed25519Priv[32:]), ed25519Priv)
86}
87
88func (hs *serverHandshakeStateTLS13) handshake() error {
89 c := hs.c

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…