(securitybits int, length int, s []byte)
| 152 | } |
| 153 | |
| 154 | func newTupleHasher(securitybits int, length int, s []byte) *thash { |
| 155 | t := thash{d: newCShake(securitybits, []byte("TupleHash"), s)} |
| 156 | t.d.outputLen = length |
| 157 | return &t |
| 158 | } |
| 159 | |
| 160 | func (t *thash) encodeOutputLength() int { |
| 161 | return rightEncode(t.d, uint64(8*t.d.outputLen)) |
no test coverage detected