Crate crypto_mac[][src]

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

Re-exports

pub use generic_array;

Modules

consts

Type aliases for many constants.

core_apicore-api

Low-level core API traits.

devdev

Development-related functionality

Macros

benchdev

Define benchmark

new_testdev

Define test

new_trunc_testdev

Define test that allows for truncated tag.

Structs

InvalidLength

The error type returned when key and/or nonce used in the FromKey and FromKeyNonce slice-based methods had an invalid length.

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

FixedOutput

Trait for types which return fixed-sized result after finalization.

FixedOutputReset

Trait for types which return fixed-sized result after finalization and reset values into its initial state.

FromKey

Trait for types which can be created from key.

Mac

Convinience super-trait covering functionality of Message Authentication algorithms.

Reset

Trait for resetting values to initial state.

Update

Trait for types which consume data.

Type Definitions

Key

Key for an algorithm that implements FromKey.