in v3/internal/aes_gcm_content_cipher.go [22:35]
func NewAESGCMContentCipher(materials materials.CryptographicMaterials) (ContentCipher, error) {
materials.CEKAlgorithm = AESGCMNoPadding
materials.TagLength = GcmTagSizeBits
cipher, err := newAESGCM(materials)
if err != nil {
return nil, err
}
return &aesGCMContentCipher{
CryptographicMaterials: materials,
Cipher: cipher,
}, nil
}