pub enum AeadKey {
Aes128Gcm(Aes128Gcm),
Aes256Gcm(Aes256Gcm),
ChaCha20Poly1305(ChaCha20Poly1305),
}Expand description
Cached AEAD key for the default provider.
Wraps the expanded cipher state for AES-128-GCM, AES-256-GCM, or ChaCha20-Poly1305 so key expansion happens only once.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AeadKey
impl RefUnwindSafe for AeadKey
impl Send for AeadKey
impl Sync for AeadKey
impl Unpin for AeadKey
impl UnsafeUnpin for AeadKey
impl UnwindSafe for AeadKey
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