Module ring::hkdf[][src]

HMAC-based Extract-and-Expand Key Derivation Function.

HKDF is specified in RFC 5869.

Structs

Algorithm

An HKDF algorithm.

Okm

An HKDF OKM (Output Keying Material)

Prk

A HKDF PRK (pseudorandom key).

Salt

A salt for HKDF operations.

Statics

HKDF_SHA1_FOR_LEGACY_USE_ONLY

HKDF using HMAC-SHA-1. Obsolete.

HKDF_SHA256

HKDF using HMAC-SHA-256.

HKDF_SHA384

HKDF using HMAC-SHA-384.

HKDF_SHA512

HKDF using HMAC-SHA-512.

Traits

KeyType

The length of the OKM (Output Keying Material) for a Prk::expand() call.