Crate libcrux_hkdf

Source
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§

HkdfSha2_256
Implementation of HKDF backed by SHA2-256
HkdfSha2_384
Implementation of HKDF backed by SHA2-384
HkdfSha2_512
Implementation of HKDF backed by SHA2-512

Enums§

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

Traits§

HkdfMode

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.