MCPcopy Create free account
hub / github.com/chain/txvm / Sum256

Function Sum256

crypto/sha3pool/pool.go:26–31  ·  view source on GitHub ↗

Sum256 uses a ShakeHash from the pool to sum into hash.

(hash, data []byte)

Source from the content-addressed store, hash-verified

24
25// Sum256 uses a ShakeHash from the pool to sum into hash.
26func Sum256(hash, data []byte) {
27 h := Get256()
28 h.Write(data)
29 h.Read(hash)
30 Put256(h)
31}

Callers 2

keyHashFunction · 0.92
keyHashFunction · 0.92

Calls 4

Get256Function · 0.85
Put256Function · 0.85
WriteMethod · 0.45
ReadMethod · 0.45

Tested by 2

keyHashFunction · 0.74
keyHashFunction · 0.74