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

Method ExporterMasterSecret

tls13/tls13.go:155–160  ·  view source on GitHub ↗

ExporterMasterSecret derives the exporter_master_secret from the master secret and the transcript up to the server Finished.

(transcript hash.Hash)

Source from the content-addressed store, hash-verified

153// ExporterMasterSecret derives the exporter_master_secret from the master secret
154// and the transcript up to the server Finished.
155func (s *MasterSecret) ExporterMasterSecret(transcript hash.Hash) *ExporterMasterSecret {
156 return &ExporterMasterSecret{
157 secret: deriveSecret(s.hash, s.secret, exporterLabel, transcript),
158 hash: s.hash,
159 }
160}
161
162// EarlyExporterMasterSecret derives the exporter_master_secret from the early secret
163// and the transcript up to the ClientHello.

Callers 1

exportKeyingMaterialMethod · 0.80

Calls 1

deriveSecretFunction · 0.85

Tested by

no test coverage detected