MCPcopy
hub / github.com/XTLS/REALITY / exportKeyingMaterial

Method exportKeyingMaterial

key_schedule.go:46–51  ·  view source on GitHub ↗

exportKeyingMaterial implements RFC5705 exporters for TLS 1.3 according to RFC 8446, Section 7.5.

(s *tls13.MasterSecret, transcript hash.Hash)

Source from the content-addressed store, hash-verified

44// exportKeyingMaterial implements RFC5705 exporters for TLS 1.3 according to
45// RFC 8446, Section 7.5.
46func (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
53type keySharePrivateKeys struct {
54 curveID CurveID

Callers 2

readServerFinishedMethod · 0.80
sendServerFinishedMethod · 0.80

Calls 2

ExporterMasterSecretMethod · 0.80
ExporterMethod · 0.80

Tested by

no test coverage detected