A cipherSuiteTLS13 defines only the pair of the AEAD algorithm and hash algorithm to be used with HKDF. See RFC 8446, Appendix B.4.
| 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. |
| 193 | type cipherSuiteTLS13 struct { |
| 194 | id uint16 |
| 195 | keyLen int |
| 196 | aead func(key, fixedNonce []byte) aead |
| 197 | hash crypto.Hash |
| 198 | } |
| 199 | |
| 200 | var cipherSuitesTLS13 = []*cipherSuiteTLS13{ // TODO: replace with a map. |
| 201 | {TLS_AES_128_GCM_SHA256, 16, aeadAESGCMTLS13, crypto.SHA256}, |
nothing calls this directly
no outgoing calls
no test coverage detected