pub struct Des3 { /* private fields */ }
Expand description
Triple DES in EDE configuration defined in RFC 1851.
Implementations§
Trait Implementations§
source§impl Cipher for Des3
impl Cipher for Des3
source§const BLOCK_SIZE: usize = 8usize
const BLOCK_SIZE: usize = 8usize
Block size in bytes.
source§fn with_encrypt_key(key: &[u8]) -> Result<Des3>
fn with_encrypt_key(key: &[u8]) -> Result<Des3>
Creates a new cipher instance for encryption. Read more
source§fn with_decrypt_key(key: &[u8]) -> Result<Des3>
fn with_decrypt_key(key: &[u8]) -> Result<Des3>
Creates a new cipher instance for decryption. Read more
source§fn context(&mut self) -> *mut c_void
fn context(&mut self) -> *mut c_void
Returns a pointer to the C context struct of the cipher instance. Read more
source§fn raw_encrypt_function() -> RawCipherFunctionPointer
fn raw_encrypt_function() -> RawCipherFunctionPointer
Pointer to the *_encrypt C function. Read more
source§fn raw_decrypt_function() -> RawCipherFunctionPointer
fn raw_decrypt_function() -> RawCipherFunctionPointer
Pointer to the *_decrypt C function. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Des3
impl Send for Des3
impl Sync for Des3
impl Unpin for Des3
impl UnwindSafe for Des3
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