extract implements HKDF-Extract with the cipher suite hash.
(newSecret, currentSecret []byte)
| 60 | |
| 61 | // extract implements HKDF-Extract with the cipher suite hash. |
| 62 | func (c *cipherSuiteTLS13) extract(newSecret, currentSecret []byte) []byte { |
| 63 | if newSecret == nil { |
| 64 | newSecret = make([]byte, c.hash.Size()) |
| 65 | } |
| 66 | return hkdf.Extract(c.hash.New, newSecret, currentSecret) |
| 67 | } |
| 68 | |
| 69 | // nextTrafficSecret generates the next traffic secret, given the current one, |
| 70 | // according to RFC 8446, Section 7.2. |
no test coverage detected