Struct aes::Aes192

source ·
pub struct Aes192 { /* private fields */ }
Expand description

AES-192 block cipher instance

Trait Implementations§

source§

impl BlockCipher for Aes192

§

type BlockSize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>

Size of the block in bytes
§

type ParBlocks = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>

Number of blocks which can be processed in parallel by cipher implementation
source§

impl BlockDecrypt for Aes192

source§

fn decrypt_block(&self, block: &mut Block)

Decrypt block in-place
source§

fn decrypt_par_blocks(&self, blocks: &mut ParBlocks)

Decrypt several blocks in parallel using instruction level parallelism if possible. Read more
source§

fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])

Decrypt a slice of blocks, leveraging parallelism when available.
source§

impl BlockEncrypt for Aes192

source§

fn encrypt_block(&self, block: &mut Block)

Encrypt block in-place
source§

fn encrypt_par_blocks(&self, blocks: &mut ParBlocks)

Encrypt several blocks in parallel using instruction level parallelism if possible. Read more
source§

fn encrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])

Encrypt a slice of blocks, leveraging parallelism when available.
source§

impl Clone for Aes192

source§

fn clone(&self) -> Aes192

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Aes192

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl NewBlockCipher for Aes192

§

type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>

Key size in bytes with which cipher guaranteed to be initialized.
source§

fn new(key: &GenericArray<u8, U24>) -> Self

Create new block cipher instance from key with fixed size.
source§

fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>

Create new block cipher instance from key with variable size. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<Alg> BlockDecryptMut for Algwhere Alg: BlockDecrypt,

source§

fn decrypt_block_mut( &mut self, block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize> )

Decrypt block in-place
source§

impl<Alg> BlockEncryptMut for Algwhere Alg: BlockEncrypt,

source§

fn encrypt_block_mut( &mut self, block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize> )

Encrypt block in-place
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.