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
mod engine;

/// Block size required by OCB in bytes.
pub(crate) const BLOCK_BYTES: usize = 16;
/// Smallest supported authentication-tag size in bytes.
pub(crate) const MIN_MAC_BYTES: usize = 8;
/// Largest supported authentication-tag size in bytes.
pub(crate) const MAX_MAC_BYTES: usize = 16;
/// Largest supported nonce size in bytes.
pub(crate) const MAX_NONCE_BYTES: usize = 15;

pub use engine::OcbBlockCipher;