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