core/crypto/hkdf

hkdf

Procedures

3

expand

expand :: proc(algorithm: hash.Algorithm, prk: []u8, info: []u8, dst: []u8)Source

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

extract :: proc(algorithm: hash.Algorithm, salt: []u8, ikm: []u8, dst: []u8)Source

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

extract_and_expand :: proc(algorithm: hash.Algorithm, salt: []u8, ikm: []u8, info: []u8, dst: []u8)Source

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.

Reference search

Find anything

Documentation preferences

Settings

System theme variants

Used only while Theme is set to System.