pub enum AeadAlgorithm {
Aes128Gcm,
Aes192Gcm,
Aes256Gcm,
Aes256GcmSiv,
ChaCha20Poly1305,
XChaCha20Poly1305,
}Expand description
Authenticated encryption (AEAD) algorithm identifiers.
Variants§
Aes128Gcm
AES-128 in Galois/Counter Mode.
Aes192Gcm
AES-192 in Galois/Counter Mode.
Aes256Gcm
AES-256 in Galois/Counter Mode.
Aes256GcmSiv
AES-256 in GCM-SIV (nonce-misuse-resistant) mode.
ChaCha20Poly1305
ChaCha20-Poly1305 with a 96-bit RFC 8439 nonce.
XChaCha20Poly1305
XChaCha20-Poly1305 with a 192-bit extended nonce.
Implementations§
Trait Implementations§
Source§impl Clone for AeadAlgorithm
impl Clone for AeadAlgorithm
Source§fn clone(&self) -> AeadAlgorithm
fn clone(&self) -> AeadAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AeadAlgorithm
Source§impl Debug for AeadAlgorithm
impl Debug for AeadAlgorithm
Source§impl Display for AeadAlgorithm
impl Display for AeadAlgorithm
impl Eq for AeadAlgorithm
Source§impl Hash for AeadAlgorithm
impl Hash for AeadAlgorithm
Source§impl PartialEq for AeadAlgorithm
impl PartialEq for AeadAlgorithm
impl StructuralPartialEq for AeadAlgorithm
Auto Trait Implementations§
impl Freeze for AeadAlgorithm
impl RefUnwindSafe for AeadAlgorithm
impl Send for AeadAlgorithm
impl Sync for AeadAlgorithm
impl Unpin for AeadAlgorithm
impl UnsafeUnpin for AeadAlgorithm
impl UnwindSafe for AeadAlgorithm
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