pub struct Aes128 { /* private fields */ }
Expand description
AES-128 block cipher instance
Trait Implementations§
source§impl BlockCipher for Aes128
impl BlockCipher for Aes128
source§impl BlockDecrypt for Aes128
impl BlockDecrypt for Aes128
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
§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 Aes128
impl BlockEncrypt for Aes128
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
§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 Aes128
impl NewBlockCipher for Aes128
§type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
Key size in bytes with which cipher guaranteed to be initialized.
source§fn new(key: &GenericArray<u8, U16>) -> Self
fn new(key: &GenericArray<u8, U16>) -> Self
Create new block cipher instance from key with fixed size.
§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 Aes128
impl Send for Aes128
impl Sync for Aes128
impl Unpin for Aes128
impl UnwindSafe for Aes128
Blanket Implementations§
§impl<Alg> BlockDecryptMut for Algwhere
Alg: BlockDecrypt,
impl<Alg> BlockDecryptMut for Algwhere
Alg: BlockDecrypt,
§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
§impl<Alg> BlockEncryptMut for Algwhere
Alg: BlockEncrypt,
impl<Alg> BlockEncryptMut for Algwhere
Alg: BlockEncrypt,
§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