pub struct AesCipher { /* private fields */ }Expand description
Stores expanded AES round keys for block encryption/decryption.
Implementations§
Source§impl AesCipher
impl AesCipher
Sourcepub fn encrypt_block(&self, block: &mut [u8; 16])
pub fn encrypt_block(&self, block: &mut [u8; 16])
Encrypts one 16-byte block in place using AES.
§Arguments
block: Mutable 16-byte block to encrypt in place.
Sourcepub fn decrypt_block(&self, block: &mut [u8; 16])
pub fn decrypt_block(&self, block: &mut [u8; 16])
Decrypts one 16-byte block in place using AES inverse rounds.
§Arguments
block: Mutable 16-byte block to decrypt in place.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AesCipher
impl RefUnwindSafe for AesCipher
impl Send for AesCipher
impl Sync for AesCipher
impl Unpin for AesCipher
impl UnsafeUnpin for AesCipher
impl UnwindSafe for AesCipher
Blanket Implementations§
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