pub struct Aes256 { /* private fields */ }
Expand description
AES-256 block cipher instance
Trait Implementations
sourceimpl BlockCipher for Aes256
impl BlockCipher for Aes256
sourceimpl BlockDecrypt for Aes256
impl BlockDecrypt for Aes256
sourcefn decrypt_block(&self, block: &mut Block)
fn decrypt_block(&self, block: &mut Block)
Decrypt block in-place
sourcefn 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
sourcefn 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.
sourceimpl BlockEncrypt for Aes256
impl BlockEncrypt for Aes256
sourcefn encrypt_block(&self, block: &mut Block)
fn encrypt_block(&self, block: &mut Block)
Encrypt block in-place
sourcefn 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
sourcefn 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.
sourceimpl 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.
sourcefn new(key: &GenericArray<u8, U32>) -> Self
fn new(key: &GenericArray<u8, U32>) -> Self
Create new block cipher instance from key with fixed size.
sourcefn 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
sourceimpl<Alg> BlockDecryptMut for Algwhere
Alg: BlockDecrypt,
impl<Alg> BlockDecryptMut for Algwhere
Alg: BlockDecrypt,
sourcefn 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
sourceimpl<Alg> BlockEncryptMut for Algwhere
Alg: BlockEncrypt,
impl<Alg> BlockEncryptMut for Algwhere
Alg: BlockEncrypt,
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more