| OLD | NEW |
| 1 Test wrapping and unwrapping AES keys with RSA-OAEP. | 1 Test wrapping and unwrapping AES keys with RSA-OAEP. |
| 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 RSA keys... | 6 Importing RSA keys... |
| 7 Importing an AES key... | 7 Importing an AES key... |
| 8 Wrapping it... | 8 Wrapping it... |
| 9 PASS wrappedKey.toString() is '[object ArrayBuffer]' | 9 PASS wrappedKey.toString() is '[object ArrayBuffer]' |
| 10 Unwrapping it... | 10 Unwrapping it... |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 PASS unwrappedKey.extractable is true | 25 PASS unwrappedKey.extractable is true |
| 26 PASS unwrappedKey.algorithm.name is 'AES-CBC' | 26 PASS unwrappedKey.algorithm.name is 'AES-CBC' |
| 27 PASS unwrappedKey.algorithm.length is 256 | 27 PASS unwrappedKey.algorithm.length is 256 |
| 28 PASS unwrappedKey.usages is ['encrypt', 'decrypt'] | 28 PASS unwrappedKey.usages is ['encrypt', 'decrypt'] |
| 29 Exporting it... | 29 Exporting it... |
| 30 PASS bytesToHexString(unwrappedKeyData) is bytesToHexString(aesKeyData) | 30 PASS bytesToHexString(unwrappedKeyData) is bytesToHexString(aesKeyData) |
| 31 PASS successfullyParsed is true | 31 PASS successfullyParsed is true |
| 32 | 32 |
| 33 TEST COMPLETE | 33 TEST COMPLETE |
| 34 | 34 |
| OLD | NEW |