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

Function NewEarlySecret

tls13/tls13.go:75–80  ·  view source on GitHub ↗
(h func() H, psk []byte)

Source from the content-addressed store, hash-verified

73}
74
75func NewEarlySecret[H hash.Hash](h func() H, psk []byte) *EarlySecret {
76 return &EarlySecret{
77 secret: extract(h, psk, nil),
78 hash: func() hash.Hash { return h() },
79 }
80}
81
82func (s *EarlySecret) ResumptionBinderKey() []byte {
83 return deriveSecret(s.hash, s.secret, resumptionBinderLabel, nil)

Callers 4

loadSessionMethod · 0.92
checkForResumptionMethod · 0.92
sendServerParametersMethod · 0.92

Calls 1

extractFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…