Type Function TupleHash [src]
The TupleHash extendable output hash function, with domain-separated inputs.
TupleHash is a secure hash function with a variable output length, based on the cSHAKE function.
It is designed for unambiguously hashing tuples of data.
With most hash functions, calling update("A") followed by update("B")is identical to update("AB").
With TupleHash, this is not the case: update("A"); update("B") is different from update("AB").
Any number of inputs can be hashed, and the output depends on individual inputs and their order.
Prototype
pub fn TupleHash(comptime security_level: u11) type
Parameters
security_level: u11
Source
pub fn TupleHash(comptime security_level: u11) type {
return TupleHashLike(security_level, 0x04, 24);
}