OLD | NEW |
1 Test importing a JWK key for AES-CBC. | 1 Test importing a JWK key for AES-CBC. |
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 Importing a key... | 6 Importing a key... |
7 | 7 |
8 PASS key.type is 'secret' | 8 PASS key.type is 'secret' |
9 PASS key.extractable is false | 9 PASS key.extractable is false |
10 PASS key.algorithm.name is 'AES-CBC' | 10 PASS key.algorithm.name is 'AES-CBC' |
11 PASS key.algorithm.length is 256 | 11 PASS key.algorithm.length is 256 |
12 PASS key.usages is ["encrypt"] | 12 PASS key.usages is ["encrypt"] |
13 | 13 |
14 Using the key to encrypt plaintext... | 14 Using the key to encrypt plaintext... |
15 PASS bytesToHexString(new Uint8Array(encryptionResult)) is 'f58c4c04d6e5f1ba779e
abfb5f7bfbd69cfc4e967edb808d679f777bc6702c7d39f23369a9d9bacfa530e26304231461c9aa
f02a6a54e9e242ccbf48c59daca6' | 15 PASS bytesToHexString(new Uint8Array(encryptionResult)) is 'f58c4c04d6e5f1ba779e
abfb5f7bfbd69cfc4e967edb808d679f777bc6702c7d39f23369a9d9bacfa530e26304231461c9aa
f02a6a54e9e242ccbf48c59daca6' |
16 PASS successfullyParsed is true | 16 PASS successfullyParsed is true |
17 | 17 |
18 TEST COMPLETE | 18 TEST COMPLETE |
19 | 19 |
OLD | NEW |