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
/// Parameters that carry associated data for [`AeadCipherInit::init`](crate::AeadCipherInit::init)
/// to absorb before any [`AeadCipher::process_aad_bytes`](crate::AeadCipher::process_aad_bytes)
/// call.
pub trait InitialAadParams {
    /// Returns the associated data `init` absorbs, empty for none. It stays
    /// part of every message that [`AeadCipher::reset`](crate::AeadCipher::reset)
    /// restarts.
    ///
    /// Constant time in this crate's containers, which return their value
    /// without inspecting it; other implementations define their own timing.
    fn initial_aad(&self) -> &[u8];
}