core/crypto/hkdf
hkdf
Procedures
3expand
expand :: proc(algorithm: hash.Algorithm, prk: []u8, info: []u8, dst: []u8)Sourceexpand 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
extract :: proc(algorithm: hash.Algorithm, salt: []u8, ikm: []u8, dst: []u8)Sourceextract 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
extract_and_expand :: proc(algorithm: hash.Algorithm, salt: []u8, ikm: []u8, info: []u8, dst: []u8)Sourceextract_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.