pub enum KDF {
    HKDF_SHA256,
    HKDF_SHA384,
    HKDF_SHA512,
}
Expand description

Key Derivation Functions (KDFs)

ValueKDFNhReference
0x0000(reserved)N/AN/A
0x0001HKDF-SHA25632RFC5869
0x0002HKDF-SHA38448RFC5869
0x0003HKDF-SHA51264RFC5869

KDF Identifiers

The “HPKE KDF Identifiers” registry lists identifiers for key derivation functions 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
  • KDF: The name of the algorithm
  • Nh: The output size of the Extract function in bytes
  • Reference: Where this algorithm is defined

Variants

HKDF_SHA256

0x0001

HKDF_SHA384

0x0002

HKDF_SHA512

0x0003

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.