blob: cdd3ebf5af9a7adbccf8589ab28a1ecf37921930 [file] [log] [blame]
Test deriving HKDF keys with deriveKey()
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Derive an HKDF key from ECDH keys
PASS hkdfKey.algorithm.name is "HKDF"
PASS typeof hkdfKey.extractable is 'boolean'
PASS hkdfKey.extractable is false
PASS hkdfKey.usages.join(',') is "deriveKey,deriveBits"
Derive 128 bits from the HKDF key
PASS bytesToHexString(derivedBits) is "2afc8b03741413cd32a80dc9a8451be8"
PASS successfullyParsed is true
TEST COMPLETE