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

Method clientSum

prf.go:202–206  ·  view source on GitHub ↗

clientSum returns the contents of the verify_data member of a client's Finished message.

(masterSecret []byte)

Source from the content-addressed store, hash-verified

200// clientSum returns the contents of the verify_data member of a client's
201// Finished message.
202func (h finishedHash) clientSum(masterSecret []byte) []byte {
203 out := make([]byte, finishedVerifyLength)
204 h.prf(out, masterSecret, clientFinishedLabel, h.Sum())
205 return out
206}
207
208// serverSum returns the contents of the verify_data member of a server's
209// Finished message.

Callers 2

sendFinishedMethod · 0.80
readFinishedMethod · 0.80

Calls 1

SumMethod · 0.95

Tested by

no test coverage detected