For more details, head to the MDN Web Crypto API documentation on AES-GCM.
|Should be set to AES-GCM.
|ArrayBuffer, TypedArray, or DataView
|The initialization vector. It must be 12 bytes long, unpredictable and cryptographically random. It must be unique for every encryption operation carried out with a given key. Never reuse an iv with the same key. Yet, it doesn't need to be secret and can be transmitted along with the ciphertext.
|ArrayBuffer, TypedArray or DataView
|Additional data that should be authenticated, but not encrypted. It must be included in the calculation of the authentication tag, but not encrypted itself.
|The length of the authentication tag in bits. Should be set, and will default to 96.