[][src]Struct nettle::aead::Ccm

pub struct Ccm<C: Cipher + BlockSizeIs16> { /* fields omitted */ }

Counter with CBC-MAC mode (NIST SP800-38C).

CCM is a generic AEAD mode for block cipher with 128 bit block size.

Implementations

impl<C: Cipher + BlockSizeIs16> Ccm<C>[src]

pub const DIGEST_SIZE: usize[src]

Recommended size of the CCM digest in bytes.

pub fn with_key_and_nonce(
    key: &[u8],
    nonce: &[u8],
    ad_len: usize,
    msg_len: usize,
    digest_len: usize
) -> Result<Self>
[src]

Creates a new instance with secret key and public nonce. The instance expect additional data of ad_len bytes, a overall message of msg_len and will produce a digest of digest_len bytes.

Trait Implementations

impl<C: Cipher + BlockSizeIs16> Aead for Ccm<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for Ccm<C> where
    C: RefUnwindSafe

impl<C> Send for Ccm<C> where
    C: Send

impl<C> Sync for Ccm<C> where
    C: Sync

impl<C> Unpin for Ccm<C> where
    C: Unpin

impl<C> UnwindSafe for Ccm<C> where
    C: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.