| OLD | NEW |
| (Empty) |
| 1 Tests bad algorithm inputs for AES-CBC | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 | |
| 7 Importing AES-CBC key... | |
| 8 | |
| 9 encrypt() with iv that is null... | |
| 10 error is: TypeError: AesCbcParams: iv: Not a BufferSource | |
| 11 | |
| 12 encrypt() without iv... | |
| 13 error is: TypeError: AesCbcParams: iv: Missing required property | |
| 14 | |
| 15 encrypt() with iv that is a number... | |
| 16 error is: TypeError: AesCbcParams: iv: Not a BufferSource | |
| 17 | |
| 18 encrypt() with an iv containing 0 bytes... | |
| 19 error is: OperationError: The "iv" has an unexpected length -- must be 16 bytes | |
| 20 | |
| 21 encrypt() with an iv containing 17 bytes... | |
| 22 error is: OperationError: The "iv" has an unexpected length -- must be 16 bytes | |
| 23 PASS successfullyParsed is true | |
| 24 | |
| 25 TEST COMPLETE | |
| 26 | |
| OLD | NEW |