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

Method serverSum

prf.go:221–223  ·  view source on GitHub ↗

serverSum returns the contents of the verify_data member of a server's Finished message.

(masterSecret []byte)

Source from the content-addressed store, hash-verified

219// serverSum returns the contents of the verify_data member of a server's
220// Finished message.
221func (h finishedHash) serverSum(masterSecret []byte) []byte {
222 return h.prf(masterSecret, serverFinishedLabel, h.Sum(), finishedVerifyLength)
223}
224
225// hashForClientCertificate returns the handshake messages so far, pre-hashed if
226// necessary, suitable for signing by a TLS client certificate.

Callers 2

readFinishedMethod · 0.80
sendFinishedMethod · 0.80

Calls 1

SumMethod · 0.95

Tested by

no test coverage detected