Enum mls_rs_crypto_traits::AeadId
source · #[non_exhaustive]#[repr(u16)]pub enum AeadId {
Aes128Gcm = 1,
Aes256Gcm = 2,
Chacha20Poly1305 = 3,
}
Expand description
AEAD Id, as specified in RFC 9180, Section 5.1 and Table 5.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Aes128Gcm = 1
AES-128-GCM: 16 byte key, 12 byte nonce, 16 byte tag
Aes256Gcm = 2
AES-256-GCM: 32 byte key, 12 byte nonce, 16 byte tag
Chacha20Poly1305 = 3
ChaCha20-Poly1305: 32 byte key, 12 byte nonce, 16 byte tag
Implementations§
Trait Implementations§
source§impl PartialEq for AeadId
impl PartialEq for AeadId
impl Copy for AeadId
impl Eq for AeadId
impl StructuralPartialEq for AeadId
Auto Trait Implementations§
impl Freeze for AeadId
impl RefUnwindSafe for AeadId
impl Send for AeadId
impl Sync for AeadId
impl Unpin for AeadId
impl UnwindSafe for AeadId
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