FreeRDP
|
Functions | |
void | ntlm_get_version_info (NTLM_VERSION_INFO *versionInfo) |
int | ntlm_read_version_info (wStream *s, NTLM_VERSION_INFO *versionInfo) |
void | ntlm_write_version_info (wStream *s, NTLM_VERSION_INFO *versionInfo) |
void | ntlm_print_version_info (NTLM_VERSION_INFO *versionInfo) |
int | ntlm_read_ntlm_v2_response (wStream *s, NTLMv2_RESPONSE *response) |
int | ntlm_write_ntlm_v2_response (wStream *s, NTLMv2_RESPONSE *response) |
void | ntlm_output_target_name (NTLM_CONTEXT *context) |
void | ntlm_output_channel_bindings (NTLM_CONTEXT *context) |
void | ntlm_current_time (BYTE *timestamp) |
void | ntlm_generate_timestamp (NTLM_CONTEXT *context) |
int | ntlm_compute_lm_v2_response (NTLM_CONTEXT *context) |
int | ntlm_compute_ntlm_v2_response (NTLM_CONTEXT *context) |
void | ntlm_rc4k (BYTE *key, int length, BYTE *plaintext, BYTE *ciphertext) |
void | ntlm_generate_client_challenge (NTLM_CONTEXT *context) |
void | ntlm_generate_server_challenge (NTLM_CONTEXT *context) |
void | ntlm_generate_key_exchange_key (NTLM_CONTEXT *context) |
void | ntlm_generate_random_session_key (NTLM_CONTEXT *context) |
void | ntlm_generate_exported_session_key (NTLM_CONTEXT *context) |
void | ntlm_encrypt_random_session_key (NTLM_CONTEXT *context) |
void | ntlm_decrypt_random_session_key (NTLM_CONTEXT *context) |
void | ntlm_generate_client_signing_key (NTLM_CONTEXT *context) |
void | ntlm_generate_server_signing_key (NTLM_CONTEXT *context) |
void | ntlm_generate_client_sealing_key (NTLM_CONTEXT *context) |
void | ntlm_generate_server_sealing_key (NTLM_CONTEXT *context) |
void | ntlm_init_rc4_seal_states (NTLM_CONTEXT *context) |
void | ntlm_compute_message_integrity_check (NTLM_CONTEXT *context, BYTE *mic, UINT32 size) |
int ntlm_compute_lm_v2_response | ( | NTLM_CONTEXT * | context | ) |
int ntlm_compute_ntlm_v2_response | ( | NTLM_CONTEXT * | context | ) |
Compute NTLMv2 Response. NTLMv2_RESPONSE http://msdn.microsoft.com/en-us/library/cc236653/ NTLMv2 Authentication http://msdn.microsoft.com/en-us/library/cc236700/
NTLM | context |
Get current time, in tenths of microseconds since midnight of January 1, 1601.
[out] | timestamp | 64-bit little-endian timestamp |
void ntlm_decrypt_random_session_key | ( | NTLM_CONTEXT * | context | ) |
Decrypt RandomSessionKey (RC4-encrypted RandomSessionKey, using KeyExchangeKey as the key).
NTLM | context |
if (NegotiateFlags & NTLMSSP_NEGOTIATE_KEY_EXCH) Set RandomSessionKey to RC4K(KeyExchangeKey, AUTHENTICATE_MESSAGE.EncryptedRandomSessionKey) else Set RandomSessionKey to KeyExchangeKey
void ntlm_encrypt_random_session_key | ( | NTLM_CONTEXT * | context | ) |
Encrypt RandomSessionKey (RC4-encrypted RandomSessionKey, using KeyExchangeKey as the key).
NTLM | context |
void ntlm_generate_client_challenge | ( | NTLM_CONTEXT * | context | ) |
Generate client challenge (8-byte nonce).
NTLM | context |
void ntlm_generate_client_sealing_key | ( | NTLM_CONTEXT * | context | ) |
Generate client sealing key (ClientSealingKey). http://msdn.microsoft.com/en-us/library/cc236712/
NTLM | context |
void ntlm_generate_client_signing_key | ( | NTLM_CONTEXT * | context | ) |
Generate client signing key (ClientSigningKey). http://msdn.microsoft.com/en-us/library/cc236711/
NTLM | context |
void ntlm_generate_exported_session_key | ( | NTLM_CONTEXT * | context | ) |
Generate ExportedSessionKey (the RandomSessionKey, exported)
NTLM | context |
void ntlm_generate_key_exchange_key | ( | NTLM_CONTEXT * | context | ) |
Generate KeyExchangeKey (the 128-bit SessionBaseKey). http://msdn.microsoft.com/en-us/library/cc236710/
NTLM | context |
void ntlm_generate_random_session_key | ( | NTLM_CONTEXT * | context | ) |
Generate RandomSessionKey (16-byte nonce).
NTLM | context |
void ntlm_generate_server_challenge | ( | NTLM_CONTEXT * | context | ) |
Generate server challenge (8-byte nonce).
NTLM | context |
void ntlm_generate_server_sealing_key | ( | NTLM_CONTEXT * | context | ) |
Generate server sealing key (ServerSealingKey). http://msdn.microsoft.com/en-us/library/cc236712/
NTLM | context |
void ntlm_generate_server_signing_key | ( | NTLM_CONTEXT * | context | ) |
Generate server signing key (ServerSigningKey). http://msdn.microsoft.com/en-us/library/cc236711/
NTLM | context |
void ntlm_generate_timestamp | ( | NTLM_CONTEXT * | context | ) |
Generate timestamp for AUTHENTICATE_MESSAGE.
NTLM | context |
void ntlm_get_version_info | ( | NTLM_VERSION_INFO * | versionInfo | ) |
WinPR: Windows Portable Runtime NTLM Security Package (Compute)
Copyright 2011-2014 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Populate VERSION structure. VERSION http://msdn.microsoft.com/en-us/library/cc236654/
s |
void ntlm_init_rc4_seal_states | ( | NTLM_CONTEXT * | context | ) |
Initialize RC4 stream cipher states for sealing.
NTLM | context |
void ntlm_output_channel_bindings | ( | NTLM_CONTEXT * | context | ) |
void ntlm_output_target_name | ( | NTLM_CONTEXT * | context | ) |
void ntlm_print_version_info | ( | NTLM_VERSION_INFO * | versionInfo | ) |
Print VERSION structure. VERSION http://msdn.microsoft.com/en-us/library/cc236654/
s |
Encrypt the given plain text using RC4 and the given key.
key | RC4 key |
length | text length |
plaintext | plain text |
ciphertext | cipher text |
int ntlm_read_ntlm_v2_response | ( | wStream * | s, |
NTLMv2_RESPONSE * | response | ||
) |
int ntlm_read_version_info | ( | wStream * | s, |
NTLM_VERSION_INFO * | versionInfo | ||
) |
Read VERSION structure. VERSION http://msdn.microsoft.com/en-us/library/cc236654/
s |
int ntlm_write_ntlm_v2_response | ( | wStream * | s, |
NTLMv2_RESPONSE * | response | ||
) |
void ntlm_write_version_info | ( | wStream * | s, |
NTLM_VERSION_INFO * | versionInfo | ||
) |
Write VERSION structure. VERSION http://msdn.microsoft.com/en-us/library/cc236654/
s |