Tests bad algorithm inputs for AES-GCM On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". Importing AES-GCM key... encrypt() without iv... error is: TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': AeadParams: iv: Missing required property encrypt() with iv that is a number... error is: TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': AeadParams: iv: Not a BufferSource encrypt() with iv that is a string... error is: TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': AeadParams: iv: Not a BufferSource encrypt() with additionalData that is a string... error is: TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': AeadParams: additionalData: Not a BufferSource encrypt() with tagLength that is a string... error is: TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': AeadParams: tagLength: Is not a number encrypt() with negative tagLength... error is: TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': AeadParams: tagLength: Outside of numeric range encrypt() with tagLength larger than an octet... error is: TypeError: Failed to execute 'encrypt' on 'SubtleCrypto': AeadParams: tagLength: Outside of numeric range encrypt() with tagLength that is 0... error is: OperationError: The tag length is invalid: Must be 32, 64, 96, 104, 112, 120, or 128 bits encrypt() with tagLength that is 130... error is: OperationError: The tag length is invalid: Must be 32, 64, 96, 104, 112, 120, or 128 bits PASS successfullyParsed is true TEST COMPLETE