finishedHash generates the Finished verify_data or PskBinderEntry according to RFC 8446, Section 4.4.4. See sections 4.4 and 4.2.11.2 for the baseKey selection.
(baseKey []byte, transcript hash.Hash)
| 83 | // to RFC 8446, Section 4.4.4. See sections 4.4 and 4.2.11.2 for the baseKey |
| 84 | // selection. |
| 85 | func (c *cipherSuiteTLS13) finishedHash(baseKey []byte, transcript hash.Hash) []byte { |
| 86 | finishedKey := c.expandLabel(baseKey, "finished", nil, c.hash.Size()) |
| 87 | verifyData := hmac.New(c.hash.New, finishedKey) |
| 88 | verifyData.Write(transcript.Sum(nil)) |
| 89 | return verifyData.Sum(nil) |
| 90 | } |
| 91 | |
| 92 | // exportKeyingMaterial implements RFC5705 exporters for TLS 1.3 according to |
| 93 | // RFC 8446, Section 7.5. |
no test coverage detected