Struct nettle::cipher::Camellia256 [−][src]
256 bit variant of the Camellia block cipher developed by Mitsubishi & NTT, defined in RFC 3713.
Implementations
impl Camellia256
[src]
pub fn with_inverted_key(encrypt: &Self) -> Self
[src]
Creates a new Camellia256
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
.
pub fn crypt(&mut self, dst: &mut [u8], src: &[u8])
[src]
Encrypt/decrypt data from src
to dst
.
Trait Implementations
impl BlockSizeIs16 for Camellia256
[src]
impl Cipher for Camellia256
[src]
const BLOCK_SIZE: usize
[src]
const KEY_SIZE: usize
[src]
fn with_encrypt_key(key: &[u8]) -> Result<Camellia256>
[src]
fn with_decrypt_key(key: &[u8]) -> Result<Camellia256>
[src]
fn encrypt(&mut self, dst: &mut [u8], src: &[u8])
[src]
fn decrypt(&mut self, dst: &mut [u8], src: &[u8])
[src]
fn context(&mut self) -> *mut c_void
[src]
fn raw_encrypt_function() -> RawCipherFunctionPointer
[src]
fn raw_decrypt_function() -> RawCipherFunctionPointer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Camellia256
[src]
impl Send for Camellia256
[src]
impl Sync for Camellia256
[src]
impl Unpin for Camellia256
[src]
impl UnwindSafe for Camellia256
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,