pub struct TdesEde2 { /* private fields */ }
Expand description
Triple DES (3DES) block cipher.
Trait Implementations§
Source§impl BlockCipher for TdesEde2
impl BlockCipher for TdesEde2
Source§impl BlockDecrypt for TdesEde2
impl BlockDecrypt for TdesEde2
Source§fn decrypt_block(&self, block: &mut GenericArray<u8, U8>)
fn decrypt_block(&self, block: &mut GenericArray<u8, U8>)
Decrypt block in-place
Source§fn decrypt_par_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>,
)
fn decrypt_par_blocks( &self, blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>, )
Decrypt several blocks in parallel using instruction level parallelism
if possible. Read more
Source§fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
Decrypt a slice of blocks, leveraging parallelism when available.
Source§impl BlockEncrypt for TdesEde2
impl BlockEncrypt for TdesEde2
Source§fn encrypt_block(&self, block: &mut GenericArray<u8, U8>)
fn encrypt_block(&self, block: &mut GenericArray<u8, U8>)
Encrypt block in-place
Source§fn encrypt_par_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>,
)
fn encrypt_par_blocks( &self, blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>, )
Encrypt several blocks in parallel using instruction level parallelism
if possible. Read more
Source§fn encrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
fn encrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
Encrypt a slice of blocks, leveraging parallelism when available.
Source§impl NewBlockCipher for TdesEde2
impl NewBlockCipher for TdesEde2
Source§type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
Key size in bytes with which cipher guaranteed to be initialized.
Source§fn new(key: &GenericArray<u8, U16>) -> Self
fn new(key: &GenericArray<u8, U16>) -> Self
Create new block cipher instance from key with fixed size.
Source§fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
Create new block cipher instance from key with variable size. Read more
impl Copy for TdesEde2
Auto Trait Implementations§
impl Freeze for TdesEde2
impl RefUnwindSafe for TdesEde2
impl Send for TdesEde2
impl Sync for TdesEde2
impl Unpin for TdesEde2
impl UnwindSafe for TdesEde2
Blanket Implementations§
Source§impl<Alg> BlockDecryptMut for Algwhere
Alg: BlockDecrypt,
impl<Alg> BlockDecryptMut for Algwhere
Alg: BlockDecrypt,
Source§fn decrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>,
)
fn decrypt_block_mut( &mut self, block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>, )
Decrypt block in-place
Source§impl<Alg> BlockEncryptMut for Algwhere
Alg: BlockEncrypt,
impl<Alg> BlockEncryptMut for Algwhere
Alg: BlockEncrypt,
Source§fn encrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>,
)
fn encrypt_block_mut( &mut self, block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>, )
Encrypt block in-place
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more