tc_aead_cipher 0.1.1

AEAD contracts and the GCM, GCM-SIV, CCM, KCCM, EAX and OCB modes over any tc_block_cipher engine.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
mod engine;

pub(crate) const BLOCK_BYTES: usize = 16;
/// Smallest CCM nonce size in bytes.
pub(crate) const MIN_NONCE_BYTES: usize = 7;
/// Largest CCM nonce size in bytes.
pub(crate) const MAX_NONCE_BYTES: usize = 13;
/// Smallest CCM authentication-tag size in bytes.
pub(crate) const MIN_MAC_BYTES: usize = 4;
/// Largest CCM authentication-tag size in bytes.
pub(crate) const MAX_MAC_BYTES: usize = 16;

pub use engine::CcmBlockCipher;