Expand description
This module defines an information theoretic MAC for authenticating bits.
Constants§
- MAC_
LENGTH - The length in bytes of an information theoretic MAC, and of the MAC key.
Functions§
- generate_
mac_ key - Generate a fresh MAC key.
- hash_
to_ mac_ width - Hash the given input to the width of a MAC.
- mac
- Authenticate a bit using the global MAC key.
- verify_
mac - Verify a MAC on a given bit.
- xor_
mac_ width - XOR of two MAC-width byte arrays.