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

Function NewTupleHash256

crypto/sha3/tuple_hash.go:77–79  ·  view source on GitHub ↗

NewTupleHash256 creates an instance of Hash with a given key, output length in bytes and a customization string s.

(length int, s []byte)

Source from the content-addressed store, hash-verified

75// NewTupleHash256 creates an instance of Hash with a given key,
76// output length in bytes and a customization string s.
77func NewTupleHash256(length int, s []byte) TupleHash {
78 return newTupleHasher(256, length, s)
79}
80
81// NewTupleHashXOF128 provides an arbitrary-length output.
82func NewTupleHashXOF128(s []byte) TupleHashXOF {

Callers 3

TestTupleHashNISTSample4Function · 0.85
TestTupleHashNISTSample5Function · 0.85
TestTupleHashNISTSample6Function · 0.85

Calls 1

newTupleHasherFunction · 0.85

Tested by 3

TestTupleHashNISTSample4Function · 0.68
TestTupleHashNISTSample5Function · 0.68
TestTupleHashNISTSample6Function · 0.68