nextTrafficSecret generates the next traffic secret, given the current one, according to RFC 8446, Section 7.2.
(trafficSecret []byte)
| 69 | // nextTrafficSecret generates the next traffic secret, given the current one, |
| 70 | // according to RFC 8446, Section 7.2. |
| 71 | func (c *cipherSuiteTLS13) nextTrafficSecret(trafficSecret []byte) []byte { |
| 72 | return c.expandLabel(trafficSecret, trafficUpdateLabel, nil, c.hash.Size()) |
| 73 | } |
| 74 | |
| 75 | // trafficKey generates traffic keys according to RFC 8446, Section 7.3. |
| 76 | func (c *cipherSuiteTLS13) trafficKey(trafficSecret []byte) (key, iv []byte) { |
no test coverage detected