OLD | NEW |
1 Test exporting an AES key. | 1 Test exporting an AES key. |
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 error is: TypeError: Failed to execute 'exportKey' on 'SubtleCrypto': 2 argument
s required, but only 1 present. | 6 error is: TypeError: Failed to execute 'exportKey' on 'SubtleCrypto': 2 argument
s required, but only 1 present. |
7 error is: DataError: Invalid key argument | 7 error is: DataError: Invalid key argument |
8 error is: DataError: Invalid key argument | 8 error is: DataError: Invalid key argument |
9 error is: DataError: Invalid key argument | 9 error is: DataError: Invalid key argument |
10 error is: DataError: Invalid key argument | 10 error is: DataError: Invalid key argument |
11 | 11 |
12 Importing a JWK key... | 12 Importing a JWK key... |
13 error is: SyntaxError: Invalid keyFormat argument | 13 error is: SyntaxError: Invalid keyFormat argument |
14 error is: SyntaxError: Invalid keyFormat argument | 14 error is: SyntaxError: Invalid keyFormat argument |
15 error is: SyntaxError: Invalid keyFormat argument | 15 error is: SyntaxError: Invalid keyFormat argument |
16 error is: SyntaxError: Invalid keyFormat argument | 16 error is: SyntaxError: Invalid keyFormat argument |
17 error is: SyntaxError: Invalid keyFormat argument | 17 error is: SyntaxError: Invalid keyFormat argument |
18 | 18 |
19 Exporting the key as raw data... | 19 Exporting the key as raw data... |
20 PASS bytesToHexString(new Uint8Array(exportedData)) is '8e73b0f7da0e6452c810f32b
809079e562f8ead2522c6b7b' | 20 PASS bytesToHexString(new Uint8Array(exportedData)) is '8e73b0f7da0e6452c810f32b
809079e562f8ead2522c6b7b8e73b0f7da0e6452' |
21 Exporting the key as JWK... | 21 Exporting the key as JWK... |
22 PASS exportedJWK.kty is 'oct' | 22 PASS exportedJWK.kty is 'oct' |
23 PASS exportedJWK.k is 'jnOw99oOZFLIEPMrgJB55WL46tJSLGt7' | 23 PASS exportedJWK.k is 'jnOw99oOZFLIEPMrgJB55WL46tJSLGt7jnOw99oOZFI' |
24 PASS exportedJWK.alg is 'A192CBC' | 24 PASS exportedJWK.alg is 'A256CBC' |
25 PASS exportedJWK.ext is true | 25 PASS exportedJWK.ext is true |
26 PASS exportedJWK.use is undefined | 26 PASS exportedJWK.use is undefined |
27 PASS exportedJWK.key_ops is ['encrypt', 'decrypt', 'wrapKey', 'unwrapKey'] | 27 PASS exportedJWK.key_ops is ['encrypt', 'decrypt', 'wrapKey', 'unwrapKey'] |
28 | 28 |
29 Importing a key that's not extractable... | 29 Importing a key that's not extractable... |
30 | 30 |
31 Trying to export as raw... | 31 Trying to export as raw... |
32 PASS Rejected, as expected | 32 PASS Rejected, as expected |
33 error is: InvalidAccessError: key is not extractable | 33 error is: InvalidAccessError: key is not extractable |
34 Trying to export as jwk... | 34 Trying to export as jwk... |
35 PASS Rejected, as expected | 35 PASS Rejected, as expected |
36 error is: InvalidAccessError: key is not extractable | 36 error is: InvalidAccessError: key is not extractable |
37 PASS successfullyParsed is true | 37 PASS successfullyParsed is true |
38 | 38 |
39 TEST COMPLETE | 39 TEST COMPLETE |
40 | 40 |
OLD | NEW |