Struct diem_crypto::hkdf::Hkdf[][src]

pub struct Hkdf<D> where
    D: Update + BlockInput + FixedOutput + Reset + Default + Clone,
    D::BlockSize: ArrayLength<u8>,
    D::OutputSize: ArrayLength<u8>,
    D::OutputSize: IsGreaterOrEqual<U32, Output = True>, 
{ /* fields omitted */ }
Expand description

Structure representing the HKDF, capable of HKDF-Extract and HKDF-Expand operations, as defined in RFC 5869.

Implementations

The RFC5869 HKDF-Extract operation.

The RFC5869 HKDF-Expand operation.

HKDF Extract then Expand operation as a single step.

CAUTION: This is not recommended because it does not take an ikm (seed) as an input and thus, it is not fully compliant with the HKDF RFC (which always expects a non-zero ikm). Please use extract_then_expand instead, unless you know what you are doing.

This api is currently required by the Noise protocol HKDF specs.

HKDF Extract then Expand operation as a single step, but without an ikm input.

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)

recently added

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.