System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (20)
162public MessageField DomainName;
163public MessageField WorkStation;
172public MessageField TargetName;
176public MessageField TargetInfo;
185public MessageField LmChallengeResponse;
186public MessageField NtChallengeResponse;
187public MessageField DomainName;
188public MessageField UserName;
189public MessageField Workstation;
190public MessageField EncryptedRandomSessionKey;
309private static unsafe int GetFieldLength(MessageField field)
311ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField));
315private static unsafe int GetFieldOffset(MessageField field)
317ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(&field, sizeof(MessageField));
321private static ReadOnlySpan<byte> GetField(MessageField field, ReadOnlySpan<byte> payload)
334private static unsafe void SetField(ref MessageField field, int length, int offset)
341Span<byte> span = MemoryMarshal.AsBytes(new Span<MessageField>(ref field));
347private static void AddToPayload(ref MessageField field, ReadOnlySpan<byte> data, Span<byte> payload, ref int offset)
354private static void AddToPayload(ref MessageField field, ReadOnlySpan<char> data, Span<byte> payload, ref int offset)
398private unsafe void makeNtlm2ChallengeResponse(DateTime time, ReadOnlySpan<byte> ntlm2hash, ReadOnlySpan<byte> serverChallenge, Span<byte> clientChallenge, ReadOnlySpan<byte> serverInfo, ref MessageField field, Span<byte> payload, ref int payloadOffset)