pub struct TripleDes { /* private fields */ }Expand description
Triple DES in EDE (Encrypt-Decrypt-Encrypt) mode.
Uses three independent DES keys (K1, K2, K3). The 24-byte key is split into three 8-byte DES keys.
Trait Implementations§
Source§impl BlockCipher for TripleDes
impl BlockCipher for TripleDes
Source§fn new(key: &[u8]) -> Self
fn new(key: &[u8]) -> Self
Initialise the cipher with a key. The key length must be one of
the values listed in
Self::KEY_LENS.Source§fn encrypt_block(&self, block: &mut [u8])
fn encrypt_block(&self, block: &mut [u8])
Encrypt
block in place. The slice must be at least
Self::BLOCK_LEN bytes long.Source§fn decrypt_block(&self, block: &mut [u8])
fn decrypt_block(&self, block: &mut [u8])
Decrypt
block in place. The slice must be at least
Self::BLOCK_LEN bytes long.Auto Trait Implementations§
impl Freeze for TripleDes
impl RefUnwindSafe for TripleDes
impl Send for TripleDes
impl Sync for TripleDes
impl Unpin for TripleDes
impl UnsafeUnpin for TripleDes
impl UnwindSafe for TripleDes
Blanket Implementations§
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