Hacl.HKDF_SHA2_256
Portable C implementation of HKDF using SHA2-256
Buffers have the following size constraints with respect to the digest size of the underlying hash function, digest_len
:
prk
: = digest_len
okm
: <= 255 * digest_len
type bytes = SharedDefs.CBytes.t
extract salt ikm
computes a pseudorandom key using input key material ikm
and salt salt
.
expand prk info size
expands the pseudorandom key prk
, taking the info string info
into account and returns a buffer of size
bytes.
module Noalloc : sig ... end
Versions of these functions which write their output in a buffer passed in as an argument