Module hkdf

Source
Expand description

HKDF

This module implements HKDF on SHA 1 and SHA 2 (except for SHA 224).

Enums§

Algorithm
The HKDF algorithm defining the used hash function.
Error
HKDF Errors

Functions§

expand
HKDF expand using hash function mode, pre-key material prk, info, and output length okm_len. Returns the key material in a vector of length okm_len or Error::OkmLengthTooLarge if the requested output length is too large.
extract
HKDF extract using hash function mode, salt, and the input key material ikm. Returns the pre-key material in a vector of tag length.
hkdf
HKDF using hash function mode, salt, input key material ikm, info, and output length okm_len. Calls extract and expand with the given input. Returns the key material in a vector of length okm_len or Error::OkmLengthTooLarge if the requested output length is too large.