wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ms_funcs.h
Go to the documentation of this file.
1 
5 #ifndef MS_FUNCS_H
6 #define MS_FUNCS_H
7 
8 int generate_nt_response(const u8 *auth_challenge, const u8 *peer_challenge,
9  const u8 *username, size_t username_len,
10  const u8 *password, size_t password_len,
11  u8 *response);
12 int generate_nt_response_pwhash(const u8 *auth_challenge,
13  const u8 *peer_challenge,
14  const u8 *username, size_t username_len,
15  const u8 *password_hash,
16  u8 *response);
17 int generate_authenticator_response(const u8 *password, size_t password_len,
18  const u8 *peer_challenge,
19  const u8 *auth_challenge,
20  const u8 *username, size_t username_len,
21  const u8 *nt_response, u8 *response);
23  const u8 *password_hash,
24  const u8 *peer_challenge, const u8 *auth_challenge,
25  const u8 *username, size_t username_len,
26  const u8 *nt_response, u8 *response);
27 int nt_challenge_response(const u8 *challenge, const u8 *password,
28  size_t password_len, u8 *response);
29 
30 void challenge_response(const u8 *challenge, const u8 *password_hash,
31  u8 *response);
32 int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge,
33  const u8 *username, size_t username_len, u8 *challenge);
34 int nt_password_hash(const u8 *password, size_t password_len,
35  u8 *password_hash);
36 int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash);
37 int get_master_key(const u8 *password_hash_hash, const u8 *nt_response,
38  u8 *master_key);
39 int get_asymetric_start_key(const u8 *master_key, u8 *session_key,
40  size_t session_key_len, int is_send,
41  int is_server);
43  const u8 *password, size_t password_len,
44  const u8 *password_hash, u8 *pw_block);
46  const u8 *new_password, size_t new_password_len,
47  const u8 *old_password, size_t old_password_len,
48  u8 *encrypted_pw_block);
49 void nt_password_hash_encrypted_with_block(const u8 *password_hash,
50  const u8 *block, u8 *cypher);
52  const u8 *new_password, size_t new_password_len,
53  const u8 *old_password, size_t old_password_len,
54  u8 *encrypted_password_hash);
55 
56 #endif /* MS_FUNCS_H */
int __must_check 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.
Definition: ms_funcs.c:462
int generate_authenticator_response_pwhash(const u8 *password_hash, 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.
Definition: ms_funcs.c:220
int 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.
Definition: ms_funcs.c:349
int challenge_hash(const u8 *peer_challenge, const u8 *auth_challenge, const u8 *username, size_t username_len, u8 *challenge)
ChallengeHash() - RFC 2759, Sect. 8.2.
Definition: ms_funcs.c:77
int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash)
HashNtPasswordHash() - RFC 2759, Sect. 8.4.
Definition: ms_funcs.c:127
int nt_password_hash(const u8 *password, size_t password_len, u8 *password_hash)
NtPasswordHash() - RFC 2759, Sect. 8.3.
Definition: ms_funcs.c:105
int 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.
Definition: ms_funcs.c:164
int 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.
Definition: ms_funcs.c:504
void challenge_response(const u8 *challenge, const u8 *password_hash, u8 *response)
ChallengeResponse() - RFC 2759, Sect. 8.5.
Definition: ms_funcs.c:140
int nt_challenge_response(const u8 *challenge, const u8 *password, size_t password_len, u8 *response)
NtChallengeResponse() - RFC 2433, Sect. A.5.
Definition: ms_funcs.c:299
int generate_nt_response_pwhash(const u8 *auth_challenge, const u8 *peer_challenge, const u8 *username, size_t username_len, const u8 *password_hash, u8 *response)
GenerateNTResponse() - RFC 2759, Sect. 8.1.
Definition: ms_funcs.c:191
int __must_check encrypt_pw_block_with_password_hash(const u8 *password, size_t password_len, const u8 *password_hash, u8 *pw_block)
EncryptPwBlockWithPasswordHash() - RFC 2759, Sect. 8.10.
Definition: ms_funcs.c:423
int get_master_key(const u8 *password_hash_hash, const u8 *nt_response, u8 *master_key)
GetMasterKey() - RFC 3079, Sect. 3.4.
Definition: ms_funcs.c:317
int 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.
Definition: ms_funcs.c:276
void nt_password_hash_encrypted_with_block(const u8 *password_hash, const u8 *block, u8 *cypher)
NtPasswordHashEncryptedWithBlock() - RFC 2759, Sect 8.13.
Definition: ms_funcs.c:487