Traits for Universal Hash Functions.
Universal hash functions provide a “universal family” of possible hash functions where a given member of a family is selected by a key.
They are well suited to the purpose of “one time authenticators” for a sequence of bytestring inputs, as their construction has a number of desirable properties such as pairwise independence as well as amenability to efficient implementations, particularly when implemented using SIMD instructions.
When combined with a cipher, such as in Galois/Counter Mode (GCM) or the Salsa20 family AEAD constructions, they can provide the core functionality for a Message Authentication Code (MAC).
- Type aliases for many constants.
- Error type used by the
UniversalHash::verifymethod to indicate that UHF output is not equal the expected value.
- Types which can be initialized from key.
- Resettable types.
- Trait implemented by UHF backends.
- Trait for
UniversalHashtrait defines a generic interface for universal hash functions.