Expand description
HKDF
This crate implements HKDF on SHA 1 and SHA 2 (except for SHA 224).
Modules§
- hacl
- This module contains generated hacl code.
Structs§
- Hkdf
Sha2_ 256 - Implementation of HKDF backed by SHA2-256
- Hkdf
Sha2_ 384 - Implementation of HKDF backed by SHA2-384
- Hkdf
Sha2_ 512 - Implementation of HKDF backed by SHA2-512
Enums§
Traits§
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
or [Error::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
or [Error::OkmLengthTooLarge
] if the requested output length is too large.