pub struct Aes128 { /* private fields */ }Implementations§
Source§impl Aes128
impl Aes128
Sourcepub fn encrypt_to_slice(&self, plain: &[u8], cipher: &mut [u8])
pub fn encrypt_to_slice(&self, plain: &[u8], cipher: &mut [u8])
Encrypts the input. The input must not be empty and its size must be a multiple of 16. The output size must be the same as the input size.
Sourcepub fn encrypt(&self, plain: &[u8]) -> Vec<u8>
pub fn encrypt(&self, plain: &[u8]) -> Vec<u8>
Encrypts the input. The input must not be empty and its size must be a multiple of 16.
Sourcepub fn decrypt_to_slice(&self, cipher: &[u8], plain: &mut [u8])
pub fn decrypt_to_slice(&self, cipher: &[u8], plain: &mut [u8])
Decrypts the input. The input must not be empty and its size must be a multiple of 16. The output size must be the same as the input size.
Auto Trait Implementations§
impl Freeze for Aes128
impl RefUnwindSafe for Aes128
impl Send for Aes128
impl Sync for Aes128
impl Unpin for Aes128
impl UnsafeUnpin for Aes128
impl UnwindSafe for Aes128
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