Package gcm implements the Galois/Counter Mode of Operation (GCM) for block ciphers.
NonceSize specifies the nonce size in bytes.
TagSize specifies the tag size in bytes.
DecryptAES128 decrypts the ciphertext in AES-GCM mode. They key specifies the AES encryption key and nonce is an unique initialization vector; the nonce must not be reused for the same encryption key. The additionalData specifies additional data that is was authenticated but not encrypted when the ciphertext was created.
EncryptAES128 encrypts the plaintext in AES-GCM mode. The key specifies the AES encryption key and nonce is an unique initialization vector; the nonce must not be reused for the same encryption key. The additionalData specifies additional data that is authenticated but not encrypted. The input plaintext can be of any length i.e. it don't have to be padded to cipher block size.