HKDF-expand from the spec. The most important part. HKDF-Expand(PRK, info, L) -> OKM
hash function that would be used (e.g. sha256)
a pseudorandom key of at least HashLen octets (usually, the output from the extract step)
Optionalinfo: TArg<Uint8Array<ArrayBufferLike>>optional context and application specific information (can be a zero-length string)
Optionallength: numberlength of output keying material in bytes.
RFC 5869 §2.3 allows 0..255*HashLen, so 0 returns an empty OKM.
Output keying material with the requested length.
Re-export the full HKDF function from
@noble/hashesfor advanced use cases that need custom hash functions or output lengths.