TupleHash128 hashes a tuple with a given customization string s. Output is written to `out`. len(out) determines the output size.
(tuple [][]byte, s []byte, out []byte)
| 39 | // TupleHash128 hashes a tuple with a given customization string s. |
| 40 | // Output is written to `out`. len(out) determines the output size. |
| 41 | func TupleHash128(tuple [][]byte, s []byte, out []byte) { |
| 42 | shake := newTupleHash(128, tuple, s) |
| 43 | rightEncode(shake, uint64(len(out)*8)) |
| 44 | shake.Read(out) |
| 45 | } |
| 46 | |
| 47 | // TupleHash256 hashes a tuple with a given customization string s. |
| 48 | // Output is written to `out`. len(out) determines the output size. |