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

Method ServerHandshakeTrafficSecret

tls13/tls13.go:113–115  ·  view source on GitHub ↗

ServerHandshakeTrafficSecret derives the server_handshake_traffic_secret from the handshake secret and the transcript up to the ServerHello.

(transcript hash.Hash)

Source from the content-addressed store, hash-verified

111// ServerHandshakeTrafficSecret derives the server_handshake_traffic_secret from
112// the handshake secret and the transcript up to the ServerHello.
113func (s *HandshakeSecret) ServerHandshakeTrafficSecret(transcript hash.Hash) []byte {
114 return deriveSecret(s.hash, s.secret, serverHandshakeTrafficLabel, transcript)
115}
116
117type MasterSecret struct {
118 secret []byte

Callers 2

sendServerParametersMethod · 0.80

Calls 1

deriveSecretFunction · 0.85

Tested by

no test coverage detected