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

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

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

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

Implementations

Recommended size of the CCM digest in bytes.

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

Length of the digest in bytes.

Adds associated data ad.

Encrypts one block src to dst.

Decrypts one block src to dst.

Produce the digest.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.