Struct aes::Aes256[][src]

pub struct Aes256 { /* fields omitted */ }
Expand description

AES-256 block cipher instance

Trait Implementations

impl BlockCipher for Aes256[src]

type BlockSize = U16

Size of the block in bytes

type ParBlocks = U8

Number of blocks which can be processed in parallel by cipher implementation Read more

impl BlockDecrypt for Aes256[src]

fn decrypt_block(&self, block: &mut Block)[src]

Decrypt block in-place

fn decrypt_par_blocks(&self, blocks: &mut ParBlocks)[src]

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

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

Decrypt a slice of blocks, leveraging parallelism when available.

impl BlockEncrypt for Aes256[src]

fn encrypt_block(&self, block: &mut Block)[src]

Encrypt block in-place

fn encrypt_par_blocks(&self, blocks: &mut ParBlocks)[src]

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

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

Encrypt a slice of blocks, leveraging parallelism when available.

impl Clone for Aes256[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Aes256[src]

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

Formats the value using the given formatter. Read more

impl NewBlockCipher for Aes256[src]

type KeySize = U32

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

fn new(key: &GenericArray<u8, U32>) -> Self[src]

Create new block cipher instance from key with fixed size.

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

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

Auto Trait Implementations

impl Send for Aes256

impl Sync for Aes256

impl Unpin for Aes256

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<Alg> BlockDecryptMut for Alg where
    Alg: BlockDecrypt
[src]

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

Decrypt block in-place

impl<Alg> BlockEncryptMut for Alg where
    Alg: BlockEncrypt
[src]

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

Encrypt block in-place

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.