HDKF
const { hkdf } = Cryptopp.keyDerivation;
const derived = hkdf(str, 'salt', 'HKDF key derivation', 1024);
Parameters
Parameter | Type | Required |
---|---|---|
data | string ArrayBuffer | ✅ |
salt | string ArrayBuffer | ✅ |
hash | Name of any supported hash | ✅ |
info | string | ✅ |
info
is additional, possibly public information to use during derivation.