HDKF
const {hkdf} = Cryptopp.keyDerivation;
const derived = hkdf(str, 'salt', 'HKDF key derivation', 1024);
Parameters
Parameter | Type | Required |
---|---|---|
data | string ArrayBuffer | ✅ |
salt | string | ✅ |
hash | "SHA1" "SHA256" "SHA512" "SHA3_256" "SHA3_512" "SHAKE128" "SHAKE256" "BLAKE2b" "BLAKE2s" "LSH256" "LSH512" "SM3" | ✅ |
info | string | ✅ |
info
is additional, possibly public information to use during derivation.