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

Method ClientHandshakeTrafficSecret

tls13/tls13.go:107–109  ·  view source on GitHub ↗

ClientHandshakeTrafficSecret derives the client_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

105// ClientHandshakeTrafficSecret derives the client_handshake_traffic_secret from
106// the handshake secret and the transcript up to the ServerHello.
107func (s *HandshakeSecret) ClientHandshakeTrafficSecret(transcript hash.Hash) []byte {
108 return deriveSecret(s.hash, s.secret, clientHandshakeTrafficLabel, transcript)
109}
110
111// ServerHandshakeTrafficSecret derives the server_handshake_traffic_secret from
112// the handshake secret and the transcript up to the ServerHello.

Callers 2

sendServerParametersMethod · 0.80

Calls 1

deriveSecretFunction · 0.85

Tested by

no test coverage detected