Module HKDF.Noalloc
Versions of these functions which write their output in a buffer passed in as an argument
val extract : alg:SharedDefs.HashDefs.alg -> salt:bytes -> ikm:bytes -> prk:bytes -> unit
extract alg salt ikm prk
computes a pseudorandom keyprk
using hashing algorithmalg
with input key materialikm
and saltsalt
.
val expand : alg:SharedDefs.HashDefs.alg -> prk:bytes -> info:bytes -> okm:bytes -> unit
expand alg prk info okm
expands the pseudorandom keyprk
using hashing algorithmalg
, taking the info stringinfo
into account, and writes the output key material inokm
.