FreeRDP
|
BOOL ntlm_compute_lm_v2_response | ( | NTLM_CONTEXT * | context | ) |
BOOL ntlm_compute_message_integrity_check | ( | NTLM_CONTEXT * | context, |
BYTE * | mic, | ||
UINT32 | size | ||
) |
BOOL ntlm_compute_ntlm_v2_response | ( | NTLM_CONTEXT * | context | ) |
Compute NTLMv2 Response.
NTLMv2_RESPONSE msdn{cc236653} NTLMv2 Authentication msdn{cc236700}
context | A pointer to the NTLM context |
void ntlm_current_time | ( | BYTE * | timestamp | ) |
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).
context | A pointer to the 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).
context | A pointer to the NTLM context |
void ntlm_generate_client_challenge | ( | NTLM_CONTEXT * | context | ) |
Generate client challenge (8-byte nonce).
context | A pointer to the NTLM context |
BOOL ntlm_generate_client_sealing_key | ( | NTLM_CONTEXT * | context | ) |
Generate client sealing key (ClientSealingKey). msdn{cc236712}
context | A pointer to the NTLM context |
BOOL ntlm_generate_client_signing_key | ( | NTLM_CONTEXT * | context | ) |
Generate client signing key (ClientSigningKey). msdn{cc236711}
context | A pointer to the NTLM context |
void ntlm_generate_exported_session_key | ( | NTLM_CONTEXT * | context | ) |
Generate ExportedSessionKey (the RandomSessionKey, exported)
context | A pointer to the NTLM context |
void ntlm_generate_key_exchange_key | ( | NTLM_CONTEXT * | context | ) |
Generate KeyExchangeKey (the 128-bit SessionBaseKey). msdn{cc236710}
context | A pointer to the NTLM context |
void ntlm_generate_random_session_key | ( | NTLM_CONTEXT * | context | ) |
Generate RandomSessionKey (16-byte nonce).
context | A pointer to the NTLM context |
void ntlm_generate_server_challenge | ( | NTLM_CONTEXT * | context | ) |
Generate server challenge (8-byte nonce).
context | A pointer to the NTLM context |
BOOL ntlm_generate_server_sealing_key | ( | NTLM_CONTEXT * | context | ) |
Generate server sealing key (ServerSealingKey). msdn{cc236712}
context | A pointer to the NTLM context |
BOOL ntlm_generate_server_signing_key | ( | NTLM_CONTEXT * | context | ) |
Generate server signing key (ServerSigningKey). msdn{cc236711}
context | A pointer to the NTLM context |
void ntlm_generate_timestamp | ( | NTLM_CONTEXT * | context | ) |
Generate timestamp for AUTHENTICATE_MESSAGE.
context | A pointer to the NTLM context |
BOOL 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 msdn{cc236654}
versionInfo | A pointer to the version struct |
BOOL ntlm_init_rc4_seal_states | ( | NTLM_CONTEXT * | context | ) |
Initialize RC4 stream cipher states for sealing.
context | A pointer to the NTLM context |
void ntlm_output_channel_bindings | ( | NTLM_CONTEXT * | context | ) |
void ntlm_output_target_name | ( | NTLM_CONTEXT * | context | ) |
Encrypt the given plain text using RC4 and the given key.
key | RC4 key |
length | text length |
plaintext | plain text |
ciphertext | cipher text |
BOOL ntlm_read_ntlm_v2_response | ( | wStream * | s, |
NTLMv2_RESPONSE * | response | ||
) |
BOOL ntlm_read_version_info | ( | wStream * | s, |
NTLM_VERSION_INFO * | versionInfo | ||
) |
Read VERSION structure. msdn{cc236654}
s | A pointer to a stream to read |
versionInfo | A pointer to the struct to read data to |
BOOL ntlm_write_ntlm_v2_response | ( | wStream * | s, |
const NTLMv2_RESPONSE * | response | ||
) |
BOOL ntlm_write_version_info | ( | wStream * | s, |
const NTLM_VERSION_INFO * | versionInfo | ||
) |
Write VERSION structure. msdn{cc236654}
s | A pointer to the stream to write to |
versionInfo | A pointer to the buffer to read the data from |