1 Tests bad algorithm inputs for AES-CBC
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 Importing AES-CBC key...
9 encrypt() with iv that is null...
10 error is: TypeError: AesCbcParams: iv: Not a BufferSource
12 encrypt() without iv...
13 error is: TypeError: AesCbcParams: iv: Missing required property
15 encrypt() with iv that is a number...
16 error is: TypeError: AesCbcParams: iv: Not a BufferSource
18 encrypt() with an iv containing 0 bytes...
19 error is: OperationError: The "iv" has an unexpected length -- must be 16 bytes
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