OLD | NEW |
(Empty) | |
| 1 Test bad inputs to HKDF deriveBits() |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 |
| 7 deriveBits() with an unsupported hash... |
| 8 error is: NotSupportedError: HkdfParams: hash: HMAC: Unsupported operation: dige
st |
| 9 |
| 10 deriveBits() with a key that doesn't match the algorithm... |
| 11 error is: InvalidAccessError: key.algorithm does not match that of operation |
| 12 |
| 13 deriveBits() with requested length too long... |
| 14 error is: OperationError: The length provided for HKDF is too large. |
| 15 PASS derivedKey.type is "secret" |
| 16 PASS typeof derivedKey.extractable is 'boolean' |
| 17 PASS derivedKey.extractable is true |
| 18 PASS derivedKey.algorithm.name is "AES-GCM" |
| 19 PASS derivedKey.usages.join(',') is "encrypt" |
| 20 PASS successfullyParsed is true |
| 21 |
| 22 TEST COMPLETE |
| 23 |
OLD | NEW |