43 instantiations of SecurityBuffer
System (43)
net\System\Net\_NTAuthentication.cs (30)
675
list.Add(new
SecurityBuffer
(incomingBlob, BufferType.Token));
678
list.Add(new
SecurityBuffer
(m_ChannelBinding));
687
SecurityBuffer outSecurityBuffer = new
SecurityBuffer
(m_TokenSize, BufferType.Token);
793
SecurityBuffer outSecurityBuffer = new
SecurityBuffer
(m_TokenSize, isClientPreAuth ? BufferType.Parameters : BufferType.Token);
806
list.Add(new
SecurityBuffer
(WebHeaderCollection.HeaderEncoding.GetBytes(incomingBlob), BufferType.Token));
807
list.Add(new
SecurityBuffer
(WebHeaderCollection.HeaderEncoding.GetBytes(requestMethod), BufferType.Parameters));
808
list.Add(new
SecurityBuffer
(null, BufferType.Parameters));
809
list.Add(new
SecurityBuffer
(Encoding.Unicode.GetBytes(m_Spn), BufferType.TargetHost));
812
list.Add(new
SecurityBuffer
(m_ChannelBinding));
854
list.Add(incomingBlob == null ? new
SecurityBuffer
(0, BufferType.Token) : new
SecurityBuffer
(WebHeaderCollection.HeaderEncoding.GetBytes(incomingBlob), BufferType.Token));
855
list.Add(requestMethod == null ? new
SecurityBuffer
(0, BufferType.Parameters) : new
SecurityBuffer
(WebHeaderCollection.HeaderEncoding.GetBytes(requestMethod), BufferType.Parameters));
856
list.Add(requestedUri == null ? new
SecurityBuffer
(0, BufferType.Parameters) : new
SecurityBuffer
(WebHeaderCollection.HeaderEncoding.GetBytes(requestedUri), BufferType.Parameters));
857
list.Add(new
SecurityBuffer
(0, BufferType.Parameters));
858
list.Add(realm == null ? new
SecurityBuffer
(0, BufferType.Parameters) : new
SecurityBuffer
(Encoding.Unicode.GetBytes(realm), BufferType.Parameters));
861
list.Add(new
SecurityBuffer
(m_ChannelBinding));
978
securityBuffer[0] = new
SecurityBuffer
(output, 4, sizes.SecurityTrailer, BufferType.Token);
979
securityBuffer[1] = new
SecurityBuffer
(output, 4 + sizes.SecurityTrailer, count, BufferType.Data);
980
securityBuffer[2] = new
SecurityBuffer
(output, 4 + sizes.SecurityTrailer + count, sizes.BlockSize, BufferType.Padding);
1045
securityBuffer[0] = new
SecurityBuffer
(payload, offset, count, BufferType.Stream);
1046
securityBuffer[1] = new
SecurityBuffer
(0, BufferType.Data);
1094
securityBuffer[0] = new
SecurityBuffer
(payload, offset, 16, BufferType.Token);
1095
securityBuffer[1] = new
SecurityBuffer
(payload, offset + 16, count-16, BufferType.Data);
1164
new
SecurityBuffer
(buffer, offset, count, BufferType.Stream);
1165
securityBuffer[1] = new
SecurityBuffer
(0, BufferType.Data);
1224
securityBuffer[0] = new
SecurityBuffer
(output, 0, sizes.MaxSignature, BufferType.Token);
1225
securityBuffer[1] = new
SecurityBuffer
(output, sizes.MaxSignature, count, BufferType.Data);
net\System\Net\_SecureChannel.cs (11)
945
incomingSecurity = new
SecurityBuffer
(input, offset, count, BufferType.Token);
949
new
SecurityBuffer
(null, 0, 0, BufferType.Empty)
953
SecurityBuffer outgoingSecurity = new
SecurityBuffer
(null, BufferType.Token);
1156
securityBuffer[0] = new
SecurityBuffer
(e_writeBuffer, 0, m_HeaderSize, BufferType.Header);
1157
securityBuffer[1] = new
SecurityBuffer
(e_writeBuffer, m_HeaderSize, size, BufferType.Data);
1158
securityBuffer[2] = new
SecurityBuffer
(e_writeBuffer, m_HeaderSize + size, m_TrailerSize, BufferType.Trailer);
1159
securityBuffer[3] = new
SecurityBuffer
(null, BufferType.Empty);
1193
decspc[0] = new
SecurityBuffer
(payload, offset, count, BufferType.Data);
1194
decspc[1] = new
SecurityBuffer
(null, BufferType.Empty);
1195
decspc[2] = new
SecurityBuffer
(null, BufferType.Empty);
1196
decspc[3] = new
SecurityBuffer
(null, BufferType.Empty);
net\System\Net\_SSPIWrapper.cs (2)
341
bufferDesc[0] = new
SecurityBuffer
(buffer, BufferType.Token);
360
bufferDesc[0] = new
SecurityBuffer
(buffer, BufferType.Token);
91 references to SecurityBuffer
System (91)
net\System\Net\_NativeSSPI.cs (30)
29
int AcceptSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context,
SecurityBuffer
inputBuffer, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags);
30
int AcceptSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context,
SecurityBuffer
[] inputBuffers, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags);
31
int InitializeSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
inputBuffer,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags);
32
int InitializeSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
[] inputBuffers,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags);
42
int CompleteAuthToken(ref SafeDeleteContext refContext,
SecurityBuffer
[] inputBuffers);
43
int ApplyControlToken(ref SafeDeleteContext refContext,
SecurityBuffer
[] inputBuffers);
81
public int AcceptSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context,
SecurityBuffer
inputBuffer, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
85
public int AcceptSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context,
SecurityBuffer
[] inputBuffers, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
89
public int InitializeSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
inputBuffer,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
93
public int InitializeSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
[] inputBuffers,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
197
public int CompleteAuthToken(ref SafeDeleteContext refContext,
SecurityBuffer
[] inputBuffers) {
201
public int ApplyControlToken(ref SafeDeleteContext refContext,
SecurityBuffer
[] inputBuffers)
243
public int AcceptSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context,
SecurityBuffer
inputBuffer, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
247
public int AcceptSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context,
SecurityBuffer
[] inputBuffers, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
251
public int InitializeSecurityContext(ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
inputBuffer,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
255
public int InitializeSecurityContext(SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness endianness,
SecurityBuffer
[] inputBuffers,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
421
public int CompleteAuthToken(ref SafeDeleteContext refContext,
SecurityBuffer
[] inputBuffers) {
425
public int ApplyControlToken(ref SafeDeleteContext refContext,
SecurityBuffer
[] inputBuffers)
net\System\Net\_NTAuthentication.cs (22)
672
List<
SecurityBuffer
> list = new List<
SecurityBuffer
>(2);
681
SecurityBuffer
[] inSecurityBufferArray = null;
687
SecurityBuffer
outSecurityBuffer = new SecurityBuffer(m_TokenSize, BufferType.Token);
708
SecurityBuffer
[] inSecurityBuffers = new
SecurityBuffer
[1];
792
SecurityBuffer
[] inSecurityBuffers = null;
793
SecurityBuffer
outSecurityBuffer = new SecurityBuffer(m_TokenSize, isClientPreAuth ? BufferType.Parameters : BufferType.Token);
804
List<
SecurityBuffer
> list = new List<
SecurityBuffer
>(5);
852
List<
SecurityBuffer
> list = new List<
SecurityBuffer
>(6);
977
SecurityBuffer
[] securityBuffer = new
SecurityBuffer
[3];
1044
SecurityBuffer
[] securityBuffer = new
SecurityBuffer
[2];
1093
SecurityBuffer
[] securityBuffer = new
SecurityBuffer
[2];
1162
SecurityBuffer
[] securityBuffer = new
SecurityBuffer
[2];
1223
SecurityBuffer
[] securityBuffer = new
SecurityBuffer
[2];
net\System\Net\_SafeNetHandles.cs (12)
1442
SecurityBuffer
inSecBuffer,
1443
SecurityBuffer
[] inSecBuffers,
1444
SecurityBuffer
outSecBuffer,
1517
SecurityBuffer
securityBuffer;
1769
SecurityBuffer
inSecBuffer,
1770
SecurityBuffer
[] inSecBuffers,
1771
SecurityBuffer
outSecBuffer,
1842
SecurityBuffer
securityBuffer;
2082
SecurityBuffer
[] inSecBuffers) {
2104
SecurityBuffer
securityBuffer;
2193
SecurityBuffer
[] inSecBuffers)
2216
SecurityBuffer
securityBuffer;
net\System\Net\_SecureChannel.cs (8)
941
SecurityBuffer
incomingSecurity = null;
942
SecurityBuffer
[] incomingSecurityBuffers = null;
946
incomingSecurityBuffers = new
SecurityBuffer
[]
953
SecurityBuffer
outgoingSecurity = new SecurityBuffer(null, BufferType.Token);
1154
SecurityBuffer
[] securityBuffer = new
SecurityBuffer
[4];
1192
SecurityBuffer
[] decspc = new
SecurityBuffer
[4];
net\System\Net\_SSPIWrapper.cs (19)
228
internal static int InitializeSecurityContext(SSPIInterface SecModule, ref SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness datarep,
SecurityBuffer
inputBuffer,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
243
internal static int InitializeSecurityContext(SSPIInterface SecModule, SafeFreeCredentials credential, ref SafeDeleteContext context, string targetName, ContextFlags inFlags, Endianness datarep,
SecurityBuffer
[] inputBuffers,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags) {
258
internal static int AcceptSecurityContext(SSPIInterface SecModule, ref SafeFreeCredentials credential, ref SafeDeleteContext context, ContextFlags inFlags, Endianness datarep,
SecurityBuffer
inputBuffer,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags)
274
internal static int AcceptSecurityContext(SSPIInterface SecModule, SafeFreeCredentials credential, ref SafeDeleteContext context, ContextFlags inFlags, Endianness datarep,
SecurityBuffer
[] inputBuffers,
SecurityBuffer
outputBuffer, ref ContextFlags outFlags)
289
internal static int CompleteAuthToken(SSPIInterface SecModule, ref SafeDeleteContext context,
SecurityBuffer
[] inputBuffers) {
297
internal static int ApplyControlToken(SSPIInterface SecModule, ref SafeDeleteContext context,
SecurityBuffer
[] inputBuffers)
310
public static int EncryptMessage(SSPIInterface secModule, SafeDeleteContext context,
SecurityBuffer
[] input, uint sequenceNumber) {
314
public static int DecryptMessage(SSPIInterface secModule, SafeDeleteContext context,
SecurityBuffer
[] input, uint sequenceNumber) {
330
var bufferDesc = new
SecurityBuffer
[1];
357
var bufferDesc = new
SecurityBuffer
[1];
364
internal static int MakeSignature(SSPIInterface secModule, SafeDeleteContext context,
SecurityBuffer
[] input, uint sequenceNumber) {
368
public static int VerifySignature(SSPIInterface secModule, SafeDeleteContext context,
SecurityBuffer
[] input, uint sequenceNumber) {
379
private unsafe static int EncryptDecryptHelper(OP op, SSPIInterface SecModule, SafeDeleteContext context,
SecurityBuffer
[] input, uint sequenceNumber)
393
SecurityBuffer
iBuffer = input[i];
434
SecurityBuffer
iBuffer = input[i];