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

Method Write

prf.go:174–188  ·  view source on GitHub ↗
(msg []byte)

Source from the content-addressed store, hash-verified

172}
173
174func (h *finishedHash) Write(msg []byte) (n int, err error) {
175 h.client.Write(msg)
176 h.server.Write(msg)
177
178 if h.version < VersionTLS12 {
179 h.clientMD5.Write(msg)
180 h.serverMD5.Write(msg)
181 }
182
183 if h.buffer != nil {
184 h.buffer = append(h.buffer, msg...)
185 }
186
187 return len(msg), nil
188}
189
190func (h finishedHash) Sum() []byte {
191 if h.version >= VersionTLS12 {

Callers 2

pHashFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected