public override int Read()

in src/Util/AesGcmDecryptStream.cs [72:82]


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