TupleHashXOF defines the interface to hash functions that support tuple input with extensible output.
| 21 | // TupleHashXOF defines the interface to hash functions that |
| 22 | // support tuple input with extensible output. |
| 23 | type TupleHashXOF interface { |
| 24 | ShakeHash |
| 25 | |
| 26 | // WriteItem writes length-prefixed item to the hash state. |
| 27 | WriteItem(item []byte) (written int, err error) |
| 28 | |
| 29 | // WriteItemPrefix writes length prefix to the hash state |
| 30 | // and must be followed by normal Write calls. |
| 31 | WriteItemPrefix(length int) (written int, err error) |
| 32 | } |
| 33 | |
| 34 | type thash struct { // implements hash.Hash and ShakeHash |
| 35 | d *state |
nothing calls this directly
no outgoing calls
no test coverage detected