exportKeyingMaterial implements RFC5705 exporters for TLS 1.3 according to RFC 8446, Section 7.5.
(s *tls13.MasterSecret, transcript hash.Hash)
| 44 | // exportKeyingMaterial implements RFC5705 exporters for TLS 1.3 according to |
| 45 | // RFC 8446, Section 7.5. |
| 46 | func (c *cipherSuiteTLS13) exportKeyingMaterial(s *tls13.MasterSecret, transcript hash.Hash) func(string, []byte, int) ([]byte, error) { |
| 47 | expMasterSecret := s.ExporterMasterSecret(transcript) |
| 48 | return func(label string, context []byte, length int) ([]byte, error) { |
| 49 | return expMasterSecret.Exporter(label, context, length), nil |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | type keySharePrivateKeys struct { |
| 54 | curveID CurveID |
no test coverage detected