pub struct Aes {}Implementations§
Source§impl Aes
impl Aes
pub fn encrypt<const N: usize>( plaintext: &[u8; N], key: &[u8; 16], mode: &AesMode, ) -> [u8; N]
pub fn decrypt<const N: usize>( ciphertext: &[u8; N], key: &[u8; 16], mode: &AesMode, ) -> [u8; N]
pub fn encrypt_block(plaintext: &[u8; 16], key: &[u8; 16]) -> [u8; 16]
pub fn decrypt_block(ciphertext: &[u8; 16], key: &[u8; 16]) -> [u8; 16]
Auto Trait Implementations§
impl Freeze for Aes
impl RefUnwindSafe for Aes
impl Send for Aes
impl Sync for Aes
impl Unpin for Aes
impl UnwindSafe for Aes
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