MCPcopy Create free account
hub / github.com/encodeous/nylon / mixHash

Function mixHash

polyamide/device/noise-protocol.go:238–244  ·  view source on GitHub ↗
(dst, h *[blake2s.Size]byte, data []byte)

Source from the content-addressed store, hash-verified

236}
237
238func mixHash(dst, h *[blake2s.Size]byte, data []byte) {
239 hash, _ := blake2s.New256(nil)
240 hash.Write(h[:])
241 hash.Write(data)
242 hash.Sum(dst[:0])
243 hash.Reset()
244}
245
246func (h *Handshake) Clear() {
247 setZero(h.localEphemeral[:])

Callers 4

mixHashMethod · 0.85
initFunction · 0.85

Calls 2

WriteMethod · 0.65
ResetMethod · 0.45

Tested by

no test coverage detected