pub struct Twofish { /* private fields */ }
Expand description
The Twofish block cipher.
Implementations§
Trait Implementations§
source§impl Cipher for Twofish
impl Cipher for Twofish
source§const BLOCK_SIZE: usize = 16usize
const BLOCK_SIZE: usize = 16usize
Block size in bytes.
source§fn with_encrypt_key(key: &[u8]) -> Result<Twofish>
fn with_encrypt_key(key: &[u8]) -> Result<Twofish>
Creates a new cipher instance for encryption. Read more
source§fn with_decrypt_key(key: &[u8]) -> Result<Twofish>
fn with_decrypt_key(key: &[u8]) -> Result<Twofish>
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
impl BlockSizeIs16 for Twofish
Auto Trait Implementations§
impl Freeze for Twofish
impl RefUnwindSafe for Twofish
impl Send for Twofish
impl Sync for Twofish
impl Unpin for Twofish
impl UnwindSafe for Twofish
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