[]Module skellige::prelude::blake2::crypto_mac

This crate provides trait for Message Authentication Code (MAC) algorithms.

Modules

generic_array

This crate implements a structure that can be used as a generic array type. Core Rust array types [T; N] can't be used generically with respect to N, so for example this:

Macros

impl_write

Implements std::io::Write trait for implementer of Mac

Structs

InvalidKeyLength

Error type for signaling invalid key length for MAC initialization

MacError

Error type for signaling failed MAC verification

Output

Output is a thin wrapper around bytes array which provides a safe Eq implementation that runs in a fixed time.

Traits

Mac

The Mac trait defines methods for a Message Authentication algorithm.

NewMac

Instantiate a Mac algorithm.

Type Definitions

Key

Key for an algorithm that implements NewMac.