Exemplo n.º 1
0
        internal int DecryptData(byte[] buffer, int offset, int count, out int newOffset)
        {
            CheckThrow(true);

            // SSPI seems to ignore this sequence number.
            ++_readSequenceNumber;
            return(_context.Decrypt(buffer, offset, count, out newOffset, _readSequenceNumber));
        }
Exemplo n.º 2
0
 //
 //
 //
 internal int DecryptData(byte[] buffer, int offset, int count, out int newOffset)
 {
     CheckThrow(true);
     //
     // Well, this is to play by the rules but in reality SSPI seems to ignore this sequence number.
     // Means we could simply pass 0
     //
     ++_ReadSequenceNumber;
     return(_Context.Decrypt(buffer, offset, count, out newOffset, _ReadSequenceNumber));
 }