pub struct Aes128Gcm;Expand description
AES-128-GCM authenticated encryption.
Key: 16 bytes, nonce: 12 bytes, tag: 16 bytes.
Trait Implementations§
Source§impl Aead for Aes128Gcm
impl Aead for Aes128Gcm
Source§fn seal(
&self,
key: &[u8],
nonce: &[u8],
aad: &[u8],
pt: &[u8],
ct_out: &mut [u8],
) -> Result<usize, CryptoError>
fn seal( &self, key: &[u8], nonce: &[u8], aad: &[u8], pt: &[u8], ct_out: &mut [u8], ) -> Result<usize, CryptoError>
Source§fn open(
&self,
key: &[u8],
nonce: &[u8],
aad: &[u8],
ct: &[u8],
pt_out: &mut [u8],
) -> Result<usize, CryptoError>
fn open( &self, key: &[u8], nonce: &[u8], aad: &[u8], ct: &[u8], pt_out: &mut [u8], ) -> Result<usize, CryptoError>
impl Copy for Aes128Gcm
Auto Trait Implementations§
impl Freeze for Aes128Gcm
impl RefUnwindSafe for Aes128Gcm
impl Send for Aes128Gcm
impl Sync for Aes128Gcm
impl Unpin for Aes128Gcm
impl UnsafeUnpin for Aes128Gcm
impl UnwindSafe for Aes128Gcm
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