pub enum AeadAlgorithm {
AeadAesSivCmac256 = 15,
AeadAesSivCmac512 = 16,
AeadAesGcm128 = 18,
}Expand description
Strongly-typed AEAD algorithm identifiers (RFC 8915 §4.1.3).
Variants§
Implementations§
Source§impl AeadAlgorithm
impl AeadAlgorithm
Sourcepub fn key_length(&self) -> usize
pub fn key_length(&self) -> usize
Return the key length in bytes required by this AEAD algorithm (RFC 8915 §4.1.3).
Sourcepub fn from_u16(v: u16) -> Option<AeadAlgorithm>
pub fn from_u16(v: u16) -> Option<AeadAlgorithm>
Convert from the u16 wire-encoding used in NTS-KE records (RFC 8915 §4.1.3).
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
impl Eq 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