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)); }
// // // 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)); }