Struct ccm::Ccm [−][src]
pub struct Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize, { /* fields omitted */ }
Expand description
Trait Implementations
impl<C, M, N> AeadCore for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
impl<C, M, N> AeadCore for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
type NonceSize = N
type NonceSize = N
The length of a nonce.
type TagSize = M
type TagSize = M
The maximum length of the nonce.
type CiphertextOverhead = U0
type CiphertextOverhead = U0
The upper bound amount of additional space required to support a ciphertext vs. a plaintext. Read more
impl<C, M, N> AeadInPlace for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
impl<C, M, N> AeadInPlace for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
Encrypt the data in-place, returning the authentication tag
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext (i.e. ciphertext is modified/unauthentic) Read more
Encrypt the given buffer containing a plaintext message in-place. Read more
impl<C, M, N> From<C> for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
impl<C, M, N> From<C> for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
impl<C, M, N> NewAead for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
impl<C, M, N> NewAead for Ccm<C, M, N> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<Block<C>>,
M: ArrayLength<u8> + TagSize,
N: ArrayLength<u8> + NonceSize,
Auto Trait Implementations
Blanket Implementations
Encrypt the given plaintext payload, and return the resulting ciphertext as a vector of bytes. Read more
Encrypt the given plaintext slice, and return the resulting ciphertext as a vector of bytes. Read more
Encrypt the given buffer containing a plaintext message in-place. Read more
Encrypt the data in-place, returning the authentication tag
Decrypt the message in-place, returning an error in the event the provided authentication tag does not match the given ciphertext. Read more
Decrypt the data in-place, returning an error in the event the provided authentication tag does not match the given ciphertext (i.e. ciphertext is modified/unauthentic) Read more
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self