MCPcopy Create free account
hub / github.com/XTLS/Go / cipherSuiteTLS13

Struct cipherSuiteTLS13

cipher_suites.go:193–198  ·  view source on GitHub ↗

A cipherSuiteTLS13 defines only the pair of the AEAD algorithm and hash algorithm to be used with HKDF. See RFC 8446, Appendix B.4.

Source from the content-addressed store, hash-verified

191// A cipherSuiteTLS13 defines only the pair of the AEAD algorithm and hash
192// algorithm to be used with HKDF. See RFC 8446, Appendix B.4.
193type cipherSuiteTLS13 struct {
194 id uint16
195 keyLen int
196 aead func(key, fixedNonce []byte) aead
197 hash crypto.Hash
198}
199
200var cipherSuitesTLS13 = []*cipherSuiteTLS13{ // TODO: replace with a map.
201 {TLS_AES_128_GCM_SHA256, 16, aeadAESGCMTLS13, crypto.SHA256},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected