HKDF

HKDF computes HKDF (as specified by RFC 5869) of initial keying material |secret| with |salt| and |info| using |digest|, and outputs |out_len| bytes to |out_key|. It returns one on success and zero on error.

HKDF is an Extract-and-Expand algorithm. It does not do any key stretching, and as such, is not suited to be used alone to generate a key from a password.

extern (C) nothrow @nogc
int
HKDF
(
core.stdc.stdint.uint8_t* out_key
,
size_t out_len
,,
const(core.stdc.stdint.uint8_t)* secret
,
size_t secret_len
,
const(core.stdc.stdint.uint8_t)* salt
,
size_t salt_len
,
const(core.stdc.stdint.uint8_t)* info
,
size_t info_len
)

Meta