fn gcm_encrypt<Aes, NonceSize, TagSize>(
key: &Key<Aes>,
plaintext: &[u8],
iv: &[u8],
additional_data: &[u8],
) -> Result<Vec<u8>, Error>where
Aes: BlockSizeUser<BlockSize = U16> + BlockCipherEncrypt + KeyInit,
NonceSize: ArraySize,
TagSize: SealedTagSize,Expand description
Helper for Step 6 and 7 of https://w3c.github.io/webcrypto/#aes-gcm-operations-encrypt