in src/crypto.js [26:34]
export async function encrypt(key, iv, plaintext, additionalData) {
const ciphertext = await crypto.subtle.encrypt({
additionalData,
iv,
name: 'AES-GCM',
tagLength: AEAD_SIZE_INFLATION * 8
}, key, plaintext);
return new Uint8Array(ciphertext);
}