Enum AEAD

Source
pub enum AEAD {
    AES_128_GCM,
    AES_256_GCM,
    ChaCha20Poly1305,
    Export_only,
}
Expand description

§Authenticated Encryption with Associated Data (AEAD) Functions

The 0xFFFF AEAD ID is reserved for applications which only use the Export interface; see HPKE for more details.

ValueAEADNkNnNtReference
0x0000(reserved)N/AN/AN/AN/A
0x0001AES-128-GCM161216GCM
0x0002AES-256-GCM321216GCM
0x0003ChaCha20Poly1305321216RFC8439
0xFFFFExport-onlyN/AN/AN/ARFCXXXX

The “HPKE AEAD Identifiers” registry lists identifiers for authenticated encryption with associated data (AEAD) algorithms defined for use with HPKE. These identifiers are two-byte values, so the maximum possible value is 0xFFFF = 65535.

Template:

  • Value: The two-byte identifier for the algorithm
  • AEAD: The name of the algorithm
  • Nk: The length in bytes of a key for this algorithm
  • Nn: The length in bytes of a nonce for this algorithm
  • Nt: The length in bytes of an authentication tag for this algorithm
  • Reference: Where this algorithm is defined

Variants§

§

AES_128_GCM

0x0001

§

AES_256_GCM

0x0002

§

ChaCha20Poly1305

0x0003

§

Export_only

0xFFFF

Trait Implementations§

Source§

impl Clone for AEAD

Source§

fn clone(&self) -> AEAD

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AEAD

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for AEAD

Source§

fn eq(&self, other: &AEAD) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AEAD

Source§

impl StructuralPartialEq for AEAD

Auto Trait Implementations§

§

impl Freeze for AEAD

§

impl RefUnwindSafe for AEAD

§

impl Send for AEAD

§

impl Sync for AEAD

§

impl Unpin for AEAD

§

impl UnwindSafe for AEAD

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V