OLD | NEW |
1 Test inputs to HKDF importKey() | 1 Test bad inputs to PKBDF2 importKey() |
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 importKey() with 'encrypt' usage... | 7 importKey() with 'encrypt' usage... |
8 error is: SyntaxError: Cannot create a key using the specified key usages. | 8 error is: SyntaxError: Cannot create a key using the specified key usages. |
9 | 9 |
10 importKey() with null key data... | 10 importKey() with null key data... |
11 error is: TypeError: Key data must be a BufferSource for non-JWK formats | 11 error is: TypeError: Key data must be a BufferSource for non-JWK formats |
12 | 12 |
13 importKey() with jwk format... | 13 importKey() with jwk format... |
14 error is: NotSupportedError: Unsupported import key format for algorithm | 14 error is: NotSupportedError: Unsupported import key format for algorithm |
15 | 15 |
16 importKey() with spki format... | 16 importKey() with spki format... |
17 error is: NotSupportedError: Unsupported import key format for algorithm | 17 error is: NotSupportedError: Unsupported import key format for algorithm |
18 | 18 |
19 importKey() with empty usages... | 19 importKey() with empty usages... |
20 error is: SyntaxError: Usages cannot be empty when creating a key. | 20 error is: SyntaxError: Usages cannot be empty when creating a key. |
| 21 |
| 22 importKey() with extractable=true ... |
| 23 error is: SyntaxError: KDF keys must set extractable=false |
21 PASS successfullyParsed is true | 24 PASS successfullyParsed is true |
22 | 25 |
23 TEST COMPLETE | 26 TEST COMPLETE |
24 | 27 |
OLD | NEW |