| OLD | NEW |
| 1 Tests bad algorithm inputs for AES-CBC | 1 Tests bad algorithm inputs 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 |
| 7 Importing AES-CBC key... |
| 8 |
| 9 encrypt() with iv that is null... |
| 6 error is: TypeError: AesCbcParams: iv: Not a BufferSource | 10 error is: TypeError: AesCbcParams: iv: Not a BufferSource |
| 11 |
| 12 encrypt() without iv... |
| 7 error is: TypeError: AesCbcParams: iv: Missing required property | 13 error is: TypeError: AesCbcParams: iv: Missing required property |
| 14 |
| 15 encrypt() with iv that is a number... |
| 8 error is: TypeError: AesCbcParams: iv: Not a BufferSource | 16 error is: TypeError: AesCbcParams: iv: Not a BufferSource |
| 17 |
| 18 encrypt() with an iv containing 0 bytes... |
| 9 error is: OperationError: The "iv" has an unexpected length -- must be 16 bytes | 19 error is: OperationError: The "iv" has an unexpected length -- must be 16 bytes |
| 20 |
| 21 encrypt() with an iv containing 17 bytes... |
| 10 error is: OperationError: The "iv" has an unexpected length -- must be 16 bytes | 22 error is: OperationError: The "iv" has an unexpected length -- must be 16 bytes |
| 11 PASS successfullyParsed is true | 23 PASS successfullyParsed is true |
| 12 | 24 |
| 13 TEST COMPLETE | 25 TEST COMPLETE |
| 14 | 26 |
| OLD | NEW |