#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "common.h"
#include "sha1.h"
#include "ms_funcs.h"
#include "crypto.h"
#include "rc4.h"
Include dependency graph for ms_funcs.c:
Go to the source code of this file.
Defines | |
#define | PWBLOCK_LEN 516 |
Functions | |
void | nt_password_hash (const u8 *password, size_t password_len, u8 *password_hash) |
NtPasswordHash() - RFC 2759, Sect. 8.3. | |
void | hash_nt_password_hash (const u8 *password_hash, u8 *password_hash_hash) |
HashNtPasswordHash() - RFC 2759, Sect. 8.4. | |
void | challenge_response (const u8 *challenge, const u8 *password_hash, u8 *response) |
ChallengeResponse() - RFC 2759, Sect. 8.5. | |
void | generate_nt_response (const u8 *auth_challenge, const u8 *peer_challenge, const u8 *username, size_t username_len, const u8 *password, size_t password_len, u8 *response) |
GenerateNTResponse() - RFC 2759, Sect. 8.1. | |
void | generate_authenticator_response (const u8 *password, size_t password_len, const u8 *peer_challenge, const u8 *auth_challenge, const u8 *username, size_t username_len, const u8 *nt_response, u8 *response) |
GenerateAuthenticatorResponse() - RFC 2759, Sect. 8.7. | |
void | nt_challenge_response (const u8 *challenge, const u8 *password, size_t password_len, u8 *response) |
NtChallengeResponse() - RFC 2433, Sect. A.5. | |
void | get_master_key (const u8 *password_hash_hash, const u8 *nt_response, u8 *master_key) |
GetMasterKey() - RFC 3079, Sect. 3.4. | |
void | get_asymetric_start_key (const u8 *master_key, u8 *session_key, size_t session_key_len, int is_send, int is_server) |
GetAsymetricStartKey() - RFC 3079, Sect. 3.4. | |
void | new_password_encrypted_with_old_nt_password_hash (const u8 *new_password, size_t new_password_len, const u8 *old_password, size_t old_password_len, u8 *encrypted_pw_block) |
NewPasswordEncryptedWithOldNtPasswordHash() - RFC 2759, Sect. 8.9. | |
void | old_nt_password_hash_encrypted_with_new_nt_password_hash (const u8 *new_password, size_t new_password_len, const u8 *old_password, size_t old_password_len, u8 *encrypted_password_hash) |
OldNtPasswordHashEncryptedWithNewNtPasswordHash() - RFC 2759, Sect. 8.12. |
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file ms_funcs.c.
|
ChallengeResponse() - RFC 2759, Sect. 8.5.
Definition at line 104 of file ms_funcs.c. Here is the call graph for this function: |
|
GenerateAuthenticatorResponse() - RFC 2759, Sect. 8.7.
Definition at line 156 of file ms_funcs.c. Here is the call graph for this function: |
|
GenerateNTResponse() - RFC 2759, Sect. 8.1.
Definition at line 128 of file ms_funcs.c. Here is the call graph for this function: |
|
GetAsymetricStartKey() - RFC 3079, Sect. 3.4.
Definition at line 254 of file ms_funcs.c. Here is the call graph for this function: |
|
GetMasterKey() - RFC 3079, Sect. 3.4.
Definition at line 224 of file ms_funcs.c. Here is the call graph for this function: |
|
HashNtPasswordHash() - RFC 2759, Sect. 8.4.
Definition at line 90 of file ms_funcs.c. Here is the call graph for this function: |
|
NewPasswordEncryptedWithOldNtPasswordHash() - RFC 2759, Sect. 8.9.
Definition at line 358 of file ms_funcs.c. Here is the call graph for this function: |
|
NtChallengeResponse() - RFC 2433, Sect. A.5.
Definition at line 208 of file ms_funcs.c. Here is the call graph for this function: |
|
NtPasswordHash() - RFC 2759, Sect. 8.3.
Definition at line 63 of file ms_funcs.c. Here is the call graph for this function: |
|
OldNtPasswordHashEncryptedWithNewNtPasswordHash() - RFC 2759, Sect. 8.12.
Definition at line 396 of file ms_funcs.c. Here is the call graph for this function: |