pub struct Aes192 { /* private fields */ }
Expand description
AES-192 block cipher instance
Trait Implementations
sourceimpl BlockCipher for Aes192
impl BlockCipher for Aes192
type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>
type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>
Key size in bytes with which cipher guaranteed to be initialized
type ParBlocks = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>
type ParBlocks = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>
Number of blocks which can be processed in parallel by cipher implementation Read more
sourcepub fn new(
key: &GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>
) -> Aes192
pub fn new(
key: &GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>
) -> Aes192
Create new block cipher instance from key with fixed size.
sourcepub fn encrypt_block(
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
pub fn encrypt_block(
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
Encrypt block in-place
sourcepub fn decrypt_block(
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
pub fn decrypt_block(
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
Decrypt block in-place
sourcepub fn encrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
pub fn encrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
Encrypt several blocks in parallel using instruction level parallelism if possible. Read more
sourcepub fn decrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
pub fn decrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
Decrypt several blocks in parallel using instruction level parallelism if possible. Read more
sourcefn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
Create new block cipher instance from key with variable size. Read more
Auto Trait Implementations
impl RefUnwindSafe for Aes192
impl Send for Aes192
impl Sync for Aes192
impl Unpin for Aes192
impl UnwindSafe for Aes192
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more