public override int Read()

in src/Util/AesGcmEncryptStream.cs [92:104]


        public override int Read(byte[] buffer, int offset, int count)
        {
            try
            {
                var readBytes = BaseStream.Read(buffer, offset, count);
                _position += readBytes;
                return readBytes;
            }
            catch (CryptoException cryptoException)
            {
                throw new AmazonCryptoException($"Failed to encrypt: {cryptoException.Message}", cryptoException);
            }
        }