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
/// Parameters that carry the authentication-tag size.
pub trait MacSizeParams {
    /// Returns the tag size in bytes, not bits as in Bouncy Castle. The sizes
    /// a construction accepts are checked by its `init`.
    ///
    /// Constant time in this crate's containers, which return their value
    /// without inspecting it; other implementations define their own timing.
    fn mac_size(&self) -> usize;
}