| OLD | NEW |
| 1 Tests bad algorithm inputs for AES-GCM | 1 Tests bad algorithm inputs for AES-GCM |
| 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-GCM key... |
| 8 |
| 9 encrypt() without iv... |
| 6 error is: SyntaxError: AesGcmParams: iv: Missing required property | 10 error is: SyntaxError: AesGcmParams: iv: Missing required property |
| 11 |
| 12 encrypt() with iv that is a number... |
| 7 error is: SyntaxError: AesGcmParams: iv: Not a BufferSource | 13 error is: SyntaxError: AesGcmParams: iv: Not a BufferSource |
| 14 |
| 15 encrypt() with iv that is a string... |
| 8 error is: SyntaxError: AesGcmParams: iv: Not a BufferSource | 16 error is: SyntaxError: AesGcmParams: iv: Not a BufferSource |
| 17 |
| 18 encrypt() with additionalData that is a string... |
| 9 error is: SyntaxError: AesGcmParams: additionalData: Not a BufferSource | 19 error is: SyntaxError: AesGcmParams: additionalData: Not a BufferSource |
| 20 |
| 21 encrypt() with tagLength that is a string... |
| 10 error is: SyntaxError: AesGcmParams: tagLength: Is not a number | 22 error is: SyntaxError: AesGcmParams: tagLength: Is not a number |
| 23 |
| 24 encrypt() with negative tagLength... |
| 11 error is: SyntaxError: AesGcmParams: tagLength: Outside of numeric range | 25 error is: SyntaxError: AesGcmParams: tagLength: Outside of numeric range |
| 26 |
| 27 encrypt() with tagLength larger than an octet... |
| 12 error is: SyntaxError: AesGcmParams: tagLength: Outside of numeric range | 28 error is: SyntaxError: AesGcmParams: tagLength: Outside of numeric range |
| 29 |
| 30 encrypt() with tagLength that is 0... |
| 31 error is: OperationError: The tag length is invalid: Must be 32, 64, 96, 104, 11
2, 120, or 128 bits |
| 32 |
| 33 encrypt() with tagLength that is 130... |
| 34 error is: OperationError: The tag length is invalid: Must be 32, 64, 96, 104, 11
2, 120, or 128 bits |
| 13 PASS successfullyParsed is true | 35 PASS successfullyParsed is true |
| 14 | 36 |
| 15 TEST COMPLETE | 37 TEST COMPLETE |
| 16 | 38 |
| OLD | NEW |