Struct nettle::cipher::Camellia192
source · pub struct Camellia192 { /* private fields */ }
Expand description
192 bit variant of the Camellia block cipher developed by Mitsubishi & NTT, defined in RFC 3713.
Implementations§
source§impl Camellia192
impl Camellia192
sourcepub fn with_inverted_key(encrypt: &Self) -> Self
pub fn with_inverted_key(encrypt: &Self) -> Self
Creates a new Camellia192
instance for decryption that uses the same key as encrypt
.
The encrypt
instance must be configured for encryption. This
is faster than calling with_decrypt_key
.
Trait Implementations§
source§impl Cipher for Camellia192
impl Cipher for Camellia192
source§const BLOCK_SIZE: usize = 16usize
const BLOCK_SIZE: usize = 16usize
Block size in bytes.
source§fn with_encrypt_key(key: &[u8]) -> Result<Camellia192>
fn with_encrypt_key(key: &[u8]) -> Result<Camellia192>
Creates a new cipher instance for encryption. Read more
source§fn with_decrypt_key(key: &[u8]) -> Result<Camellia192>
fn with_decrypt_key(key: &[u8]) -> Result<Camellia192>
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
source§impl Drop for Camellia192
impl Drop for Camellia192
impl BlockSizeIs16 for Camellia192
Auto Trait Implementations§
impl RefUnwindSafe for Camellia192
impl Send for Camellia192
impl Sync for Camellia192
impl Unpin for Camellia192
impl UnwindSafe for Camellia192
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