System\ServiceModel\Security\TlsSspiNegotiation.cs (11)
356byte[] buffer = DiagnosticUtility.Utility.AllocateByteArray(checked(input.Length + StreamSizes.header + StreamSizes.trailer));
358Buffer.BlockCopy(input, 0, buffer, StreamSizes.header, input.Length);
469dataStartOffset = StreamSizes.header;
507if (bufferStartOffset + dataLen + StreamSizes.header + StreamSizes.trailer > buffer.Length)
513int trailerOffset = bufferStartOffset + StreamSizes.header + dataLen;
516securityBuffer[0] = new SecurityBuffer(buffer, bufferStartOffset, StreamSizes.header, BufferType.Header);
517securityBuffer[1] = new SecurityBuffer(buffer, bufferStartOffset + StreamSizes.header, dataLen, BufferType.Data);
518securityBuffer[2] = new SecurityBuffer(buffer, trailerOffset, StreamSizes.trailer, BufferType.Trailer);
533encryptedDataLen = StreamSizes.header + dataLen + trailerSize;