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

Method Write

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

Source from the content-addressed store, hash-verified

185}
186
187func (h *finishedHash) Write(msg []byte) (n int, err error) {
188 h.client.Write(msg)
189 h.server.Write(msg)
190
191 if h.version < VersionTLS12 {
192 h.clientMD5.Write(msg)
193 h.serverMD5.Write(msg)
194 }
195
196 if h.buffer != nil {
197 h.buffer = append(h.buffer, msg...)
198 }
199
200 return len(msg), nil
201}
202
203func (h finishedHash) Sum() []byte {
204 if h.version >= VersionTLS12 {

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected