Expand description
HKDF
This module implements HKDF on SHA 1 and SHA 2 (except for SHA 224).
Enums§
Functions§
- expand
- HKDF expand using hash function
mode
, pre-key materialprk
,info
, and output lengthokm_len
. Returns the key material in a vector of lengthokm_len
orError::OkmLengthTooLarge
if the requested output length is too large. - extract
- HKDF extract using hash function
mode
,salt
, and the input key materialikm
. Returns the pre-key material in a vector of tag length. - hkdf
- HKDF using hash function
mode
,salt
, input key materialikm
,info
, and output lengthokm_len
. Callsextract
andexpand
with the given input. Returns the key material in a vector of lengthokm_len
orError::OkmLengthTooLarge
if the requested output length is too large.