MCPcopy Index your code
hub / github.com/XTLS/Go / serverSum

Method serverSum

prf.go:210–214  ·  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

208// serverSum returns the contents of the verify_data member of a server's
209// Finished message.
210func (h finishedHash) serverSum(masterSecret []byte) []byte {
211 out := make([]byte, finishedVerifyLength)
212 h.prf(out, masterSecret, serverFinishedLabel, h.Sum())
213 return out
214}
215
216// hashForClientCertificate returns the handshake messages so far, pre-hashed if
217// 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