OLD | NEW |
1 Test bad inputs to HKDF deriveBits() | 1 Test bad inputs to HKDF deriveBits() |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 | 6 |
7 deriveBits() with an unsupported hash... | 7 deriveBits() with an unsupported hash... |
8 error is: NotSupportedError: HkdfParams: hash: HMAC: Unsupported operation: dige
st | 8 error is: NotSupportedError: HkdfParams: hash: HMAC: Unsupported operation: dige
st |
9 | 9 |
10 deriveBits() with an ECDH key... | 10 deriveBits() with an ECDH key... |
11 error is: InvalidAccessError: key.algorithm does not match that of operation | 11 error is: InvalidAccessError: key.algorithm does not match that of operation |
12 | 12 |
13 deriveBits() with length of 65281... | 13 deriveBits() with length of 65281... |
14 error is: OperationError: The length provided for HKDF is too large. | 14 error is: OperationError: The length provided for HKDF is too large. |
| 15 |
| 16 deriveBits() with length of 15... |
| 17 error is: OperationError: The length provided for HKDF is not a multiple of 8 bi
ts. |
15 PASS successfullyParsed is true | 18 PASS successfullyParsed is true |
16 | 19 |
17 TEST COMPLETE | 20 TEST COMPLETE |
18 | 21 |
OLD | NEW |