pub struct Aes192 { /* private fields */ }
Expand description
AES-192 block cipher instance
Trait Implementations
sourceimpl BlockCipher for Aes192
impl BlockCipher for Aes192
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 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
sourceimpl NewBlockCipher for Aes192
impl NewBlockCipher 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.
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.
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<Alg> BlockCipherMut for Alg where
Alg: BlockCipher,
impl<Alg> BlockCipherMut for Alg where
Alg: BlockCipher,
type BlockSize = <Alg as BlockCipher>::BlockSize
type BlockSize = <Alg as BlockCipher>::BlockSize
Size of the block in bytes
sourcepub fn encrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
pub fn encrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
Encrypt block in-place
sourcepub fn decrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
pub fn decrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
Decrypt block in-place
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)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more