MCPcopy Create free account
hub / github.com/XTLS/Go / nextTrafficSecret

Method nextTrafficSecret

key_schedule.go:71–73  ·  view source on GitHub ↗

nextTrafficSecret generates the next traffic secret, given the current one, according to RFC 8446, Section 7.2.

(trafficSecret []byte)

Source from the content-addressed store, hash-verified

69// nextTrafficSecret generates the next traffic secret, given the current one,
70// according to RFC 8446, Section 7.2.
71func (c *cipherSuiteTLS13) nextTrafficSecret(trafficSecret []byte) []byte {
72 return c.expandLabel(trafficSecret, trafficUpdateLabel, nil, c.hash.Size())
73}
74
75// trafficKey generates traffic keys according to RFC 8446, Section 7.3.
76func (c *cipherSuiteTLS13) trafficKey(trafficSecret []byte) (key, iv []byte) {

Callers 1

handleKeyUpdateMethod · 0.80

Calls 2

expandLabelMethod · 0.95
SizeMethod · 0.80

Tested by

no test coverage detected