Struct eme_mode::Eme [−][src]
pub struct Eme<C: BlockCipher, P: Padding> { /* fields omitted */ }
Expand description
ECB-Mix-ECB (EME) block cipher mode instance.
Trait Implementations
impl<C, P> BlockMode<C, P> for Eme<C, P> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + BlockDecrypt,
<C as BlockCipher>::ParBlocks: ArrayLength<GenericArray<u8, <C as BlockCipher>::BlockSize>>,
P: Padding,
impl<C, P> BlockMode<C, P> for Eme<C, P> where
C: BlockCipher<BlockSize = U16> + BlockEncrypt + BlockDecrypt,
<C as BlockCipher>::ParBlocks: ArrayLength<GenericArray<u8, <C as BlockCipher>::BlockSize>>,
P: Padding,
Create a new block mode instance from initialized block cipher and IV.
Encrypt blocks of data
Decrypt blocks of data
fn new_fix(
key: &GenericArray<u8, <C as NewBlockCipher>::KeySize>,
iv: &GenericArray<u8, Self::IvSize>
) -> Self where
C: NewBlockCipher,
fn new_fix(
key: &GenericArray<u8, <C as NewBlockCipher>::KeySize>,
iv: &GenericArray<u8, Self::IvSize>
) -> Self where
C: NewBlockCipher,
Create a new block mode instance from fixed sized key and IV.
fn new_from_slices(key: &[u8], iv: &[u8]) -> Result<Self, InvalidKeyIvLength> where
C: NewBlockCipher,
fn new_from_slices(key: &[u8], iv: &[u8]) -> Result<Self, InvalidKeyIvLength> where
C: NewBlockCipher,
Create a new block mode instance from variable size key and IV. Read more
Encrypt message in-place. Read more
Decrypt message in-place. Read more
Encrypt message and store result in vector.
Encrypt message and store result in vector.
Auto Trait Implementations
impl<C, P> RefUnwindSafe for Eme<C, P> where
C: RefUnwindSafe,
P: RefUnwindSafe,
<<C as BlockCipher>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<C, P> Unpin for Eme<C, P> where
C: Unpin,
P: Unpin,
<<C as BlockCipher>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<C, P> UnwindSafe for Eme<C, P> where
C: UnwindSafe,
P: UnwindSafe,
<<C as BlockCipher>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more