pub struct Aes256 { /* private fields */ }
Expand description
AES-256 block cipher instance
Trait Implementations§
source§impl BlockCipher for Aes256
impl BlockCipher for Aes256
source§impl BlockDecrypt for Aes256
impl BlockDecrypt for Aes256
source§fn decrypt_block(&self, block: &mut Block)
fn decrypt_block(&self, block: &mut Block)
Decrypt block in-place
source§fn decrypt_par_blocks(&self, blocks: &mut ParBlocks)
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>])
fn decrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
Decrypt a slice of blocks, leveraging parallelism when available.
source§impl BlockEncrypt for Aes256
impl BlockEncrypt for Aes256
source§fn encrypt_block(&self, block: &mut Block)
fn encrypt_block(&self, block: &mut Block)
Encrypt block in-place
source§fn encrypt_par_blocks(&self, blocks: &mut ParBlocks)
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>])
fn encrypt_blocks(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
Encrypt a slice of blocks, leveraging parallelism when available.
source§impl NewBlockCipher for Aes256
impl NewBlockCipher for Aes256
§type KeySize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
type KeySize = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>
Key size in bytes with which cipher guaranteed to be initialized.
source§fn new(key: &GenericArray<u8, U32>) -> Self
fn new(key: &GenericArray<u8, U32>) -> Self
Create new block cipher instance from key with fixed size.
source§fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
Create new block cipher instance from key with variable size. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Aes256
impl Send for Aes256
impl Sync for Aes256
impl Unpin for Aes256
impl UnwindSafe for Aes256
Blanket Implementations§
source§impl<Alg> BlockDecryptMut for Algwhere
Alg: BlockDecrypt,
impl<Alg> BlockDecryptMut for Algwhere Alg: BlockDecrypt,
source§fn decrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>
)
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,
impl<Alg> BlockEncryptMut for Algwhere Alg: BlockEncrypt,
source§fn encrypt_block_mut(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize>
)
fn encrypt_block_mut( &mut self, block: &mut GenericArray<u8, <Alg as BlockCipher>::BlockSize> )
Encrypt block in-place
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more