Пример #1
0
        internal int EncryptData(byte[] buffer, int offset, int count, ref byte[] outBuffer)
        {
            CheckThrow(true);

            // SSPI seems to ignore this sequence number.
            ++_writeSequenceNumber;
            return(_context.Encrypt(buffer, offset, count, ref outBuffer, _writeSequenceNumber));
        }
Пример #2
0
 //
 //
 //
 internal int EncryptData(byte[] buffer, int offset, int count, ref byte[] outBuffer)
 {
     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
     //
     ++_WriteSequenceNumber;
     return(_Context.Encrypt(buffer, offset, count, ref outBuffer, _WriteSequenceNumber));
 }