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

Struct finishedHash

prf.go:172–185  ·  view source on GitHub ↗

A finishedHash calculates the hash of a set of handshake messages suitable for including in a Finished message.

Source from the content-addressed store, hash-verified

170// A finishedHash calculates the hash of a set of handshake messages suitable
171// for including in a Finished message.
172type finishedHash struct {
173 client hash.Hash
174 server hash.Hash
175
176 // Prior to TLS 1.2, an additional MD5 hash is required.
177 clientMD5 hash.Hash
178 serverMD5 hash.Hash
179
180 // In TLS 1.2, a full buffer is sadly required.
181 buffer []byte
182
183 version uint16
184 prf prfFunc
185}
186
187func (h *finishedHash) Write(msg []byte) (n int, err error) {
188 h.client.Write(msg)

Callers 1

computeAndUpdatePSKFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected