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

clientSum returns the contents of the verify_data member of a client's
Finished message.
// clientSum returns the contents of the verify_data member of a client ' s // Finished message .
func (h finishedHash) clientSum(baseKey []byte) []byte {
	if h.version < VersionTLS13 {
		out := make([]byte, finishedVerifyLength)
		h.prf(out, baseKey, clientFinishedLabel, h.Sum())
		return out
	}
	clientFinishedKey := hkdfExpandLabel(h.suite.hash(), baseKey, finishedLabel, nil, h.hash.Size())
	finishedHMAC := hmac.New(h.suite.hash().New, clientFinishedKey)
	finishedHMAC.Write(h.appendContextHashes(nil))
	return finishedHMAC.Sum(nil)
}
func ( h finishedHash ) clientSum ( baseKey [ ] byte ) [ ] byte { if h . version < VersionTLS13 { out := make ( [ ] byte , finishedVerifyLength ) h . prf ( out , baseKey , clientFinishedLabel , h . Sum ( ) ) return out } clientFinishedKey := hkdfExpandLabel ( h . suite . hash ( ) , baseKey , finishedLabel , nil , h . hash . Size ( ) ) finishedHMAC := hmac . New ( h . suite . hash ( ) . New , clientFinishedKey ) finishedHMAC . Write ( h . appendContextHashes ( nil ) ) return finishedHMAC . Sum ( nil ) }
clientSum returns the contents of the verify_data member of a client's
Finished message.
clientSum returns the contents of the verify_data member of a client ' s Finished message .