Struct aes::Aes128 [−][src]
AES-128 block cipher instance
Trait Implementations
impl BlockCipher for Aes128
[src]
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 Read more
pub fn encrypt_block(
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
[src]
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
pub fn decrypt_block(
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
[src]
&self,
block: &mut GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
)
pub fn encrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
[src]
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
pub fn decrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
[src]
&self,
blocks: &mut GenericArray<GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>
)
impl Clone for Aes128
[src]
impl Debug for Aes128
[src]
impl NewBlockCipher for Aes128
[src]
type KeySize = UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>
Key size in bytes with which cipher guaranteed to be initialized.
pub fn new(
key: &GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
) -> Aes128
[src]
key: &GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>
) -> Aes128
pub fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
[src]
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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Alg> BlockCipherMut for Alg where
Alg: BlockCipher,
[src]
Alg: BlockCipher,
type BlockSize = <Alg as BlockCipher>::BlockSize
Size of the block in bytes
pub fn encrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
[src]
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
pub fn decrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
[src]
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>
)
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,