logo

Struct hkdf::Hkdf

source · []
pub struct Hkdf<H: OutputSizeUser, I: HmacImpl<H> = Hmac<H>> { /* private fields */ }
Expand description

Structure representing the HKDF, capable of HKDF-Expand and HKDF-Extract operations.

Implementations

Convenience method for extract when the generated pseudorandom key can be ignored and only HKDF-Expand operation is needed. This is the most common constructor.

Create Hkdf from an already cryptographically strong pseudorandom key as per section 3.3 from RFC5869.

The RFC5869 HKDF-Extract operation returning both the generated pseudorandom key and Hkdf struct for expanding.

The RFC5869 HKDF-Expand operation. This is equivalent to calling expand with the info argument set equal to the concatenation of all the elements of info_components.

The RFC5869 HKDF-Expand operation

If you don’t have any info to pass, use an empty slice.

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

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

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.