`HKDF` HMAC-based Extract-and-Expand Key Derivation Function. See: [[ https://www.rfc-editor.org/rfc/rfc5869 ]]

Collection Info

View Source
Collection
core
Path
crypto/hkdf
Entries
3
Constants 0
Types 0
Procedures 3
Procedure Groups 0
Variables 0

Source Files

Procedures

3

expand #

Source
expand :: proc(algorithm: Algorithm, prk, info, dst: []u8) {…}

expand derives output keying material (OKM) via the HKDF-Expand algorithm, with the specified hash function, pseudorandom key (PRK), and optional info. The dst buffer must be less-than-or-equal to 255 HMAC tags.

extract #

Source
extract :: proc(algorithm: Algorithm, salt, ikm, dst: []u8) {…}

extract derives a pseudorandom key (PRK) via the HKDF-Extract algorithm, with the specified hash function, salt, and input keying material (IKM). It requires that the dst buffer be the HMAC tag size for the specified hash function.

extract_and_expand #

Source
extract_and_expand :: proc(algorithm: Algorithm, salt, ikm, info, dst: []u8) {…}

extract_and_expand derives output keying material (OKM) via the HKDF-Extract and HKDF-Expand algorithms, with the specified has function, salt, input keying material (IKM), and optional info. The dst buffer must be less-than-or-equal to 255 HMAC tags.