String-info convenience wrapper around hkdf.
Encodes info as UTF-8 before passing to hkdf.
info
Input key material.
Salt (may be empty).
UTF-8 string used as the info/context parameter.
Output bytes (max 8160).
The derived key material.
On the same conditions as hkdf.
const sessionKey = await hkdfWithInfo(masterSecret, salt, 'me2em/crypto/v1/session-key', 32); Copy
const sessionKey = await hkdfWithInfo(masterSecret, salt, 'me2em/crypto/v1/session-key', 32);
String-info convenience wrapper around hkdf.
Encodes
infoas UTF-8 before passing to hkdf.