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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.