HKDF.extract

ubyte[] extract(const(ubyte)[] salt, const(ubyte)[] ikm)

HKDF-Extract Step.

Extracts a fixed-length pseudorandom key (PRK) from the input keying material (IKM) and salt.

Parameters

saltThe salt. If null or empty, a string of HashLen zeros is used.
ikmInput keying material.

Returns

The pseudorandom key (PRK) of length HashLen.