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