Struct mgm::Mgm [−][src]
pub struct Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>, { /* fields omitted */ }
Multilinear Galous Mode cipher
Trait Implementations
impl<C> AeadCore for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]
impl<C> AeadCore for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]impl<C> AeadInPlace for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]
impl<C> AeadInPlace for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]fn encrypt_in_place_detached(
&self,
nonce: &Nonce<Self::NonceSize>,
adata: &[u8],
buffer: &mut [u8]
) -> Result<Tag<Self::TagSize>, Error>
[src]
&self,
nonce: &Nonce<Self::NonceSize>,
adata: &[u8],
buffer: &mut [u8]
) -> Result<Tag<Self::TagSize>, Error>
fn decrypt_in_place_detached(
&self,
nonce: &Nonce<Self::NonceSize>,
adata: &[u8],
buffer: &mut [u8],
expected_tag: &Tag<Self::TagSize>
) -> Result<(), Error>
[src]
&self,
nonce: &Nonce<Self::NonceSize>,
adata: &[u8],
buffer: &mut [u8],
expected_tag: &Tag<Self::TagSize>
) -> Result<(), Error>
pub fn encrypt_in_place(
&self,
nonce: &GenericArray<u8, Self::NonceSize>,
associated_data: &[u8],
buffer: &mut dyn Buffer
) -> Result<(), Error>
[src]
&self,
nonce: &GenericArray<u8, Self::NonceSize>,
associated_data: &[u8],
buffer: &mut dyn Buffer
) -> Result<(), Error>
pub fn decrypt_in_place(
&self,
nonce: &GenericArray<u8, Self::NonceSize>,
associated_data: &[u8],
buffer: &mut dyn Buffer
) -> Result<(), Error>
[src]
&self,
nonce: &GenericArray<u8, Self::NonceSize>,
associated_data: &[u8],
buffer: &mut dyn Buffer
) -> Result<(), Error>
impl<C: Clone> Clone for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]
impl<C: Clone> Clone for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]fn clone(&self) -> Mgm<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C> Debug for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher + Debug,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]
impl<C> Debug for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher + Debug,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]impl<C> From<C> for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]
impl<C> From<C> for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]impl<C> NewAead for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]
impl<C> NewAead for Mgm<C> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + NewBlockCipher,
C::ParBlocks: ArrayLength<GenericArray<u8, U16>>,
[src]Auto Trait Implementations
Blanket Implementations
impl<Alg> Aead for Alg where
Alg: AeadInPlace,
[src]
impl<Alg> Aead for Alg where
Alg: AeadInPlace,
[src]pub fn encrypt<'msg, 'aad>(
&self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
plaintext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
[src]
&self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
plaintext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
pub fn decrypt<'msg, 'aad>(
&self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
ciphertext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
[src]
&self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
ciphertext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
impl<Alg> AeadMut for Alg where
Alg: AeadMutInPlace,
[src]
impl<Alg> AeadMut for Alg where
Alg: AeadMutInPlace,
[src]pub fn encrypt<'msg, 'aad>(
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
plaintext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
[src]
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
plaintext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
pub fn decrypt<'msg, 'aad>(
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
ciphertext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
[src]
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
ciphertext: impl Into<Payload<'msg, 'aad>>
) -> Result<Vec<u8, Global>, Error>
impl<Alg> AeadMutInPlace for Alg where
Alg: AeadInPlace,
[src]
impl<Alg> AeadMutInPlace for Alg where
Alg: AeadInPlace,
[src]pub fn encrypt_in_place(
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut impl Buffer
) -> Result<(), Error>
[src]
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut impl Buffer
) -> Result<(), Error>
pub fn encrypt_in_place_detached(
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut [u8]
) -> Result<GenericArray<u8, <Alg as AeadCore>::TagSize>, Error>
[src]
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut [u8]
) -> Result<GenericArray<u8, <Alg as AeadCore>::TagSize>, Error>
pub fn decrypt_in_place(
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut impl Buffer
) -> Result<(), Error>
[src]
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut impl Buffer
) -> Result<(), Error>
pub fn decrypt_in_place_detached(
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut [u8],
tag: &GenericArray<u8, <Alg as AeadCore>::TagSize>
) -> Result<(), Error>
[src]
&mut self,
nonce: &GenericArray<u8, <Alg as AeadCore>::NonceSize>,
associated_data: &[u8],
buffer: &mut [u8],
tag: &GenericArray<u8, <Alg as AeadCore>::TagSize>
) -> Result<(), Error>
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
The resulting type after obtaining ownership.