|
wpa_supplicant / hostapd 2.0
|
00001 00010 #ifndef MS_FUNCS_H 00011 #define MS_FUNCS_H 00012 00013 int generate_nt_response(const u8 *auth_challenge, const u8 *peer_challenge, 00014 const u8 *username, size_t username_len, 00015 const u8 *password, size_t password_len, 00016 u8 *response); 00017 int generate_nt_response_pwhash(const u8 *auth_challenge, 00018 const u8 *peer_challenge, 00019 const u8 *username, size_t username_len, 00020 const u8 *password_hash, 00021 u8 *response); 00022 int generate_authenticator_response(const u8 *password, size_t password_len, 00023 const u8 *peer_challenge, 00024 const u8 *auth_challenge, 00025 const u8 *username, size_t username_len, 00026 const u8 *nt_response, u8 *response); 00027 int generate_authenticator_response_pwhash( 00028 const u8 *password_hash, 00029 const u8 *peer_challenge, const u8 *auth_challenge, 00030 const u8 *username, size_t username_len, 00031 const u8 *nt_response, u8 *response); 00032 int nt_challenge_response(const u8 *challenge, const u8 *password, 00033 size_t password_len, u8 *response); 00034 00035 void challenge_response(const u8 *challenge, const u8 *password_hash, 00036 u8 *response); 00037 int nt_password_hash(const u8 *password, size_t password_len, 00038 u8 *password_hash); 00039 int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash); 00040 int get_master_key(const u8 *password_hash_hash, const u8 *nt_response, 00041 u8 *master_key); 00042 int get_asymetric_start_key(const u8 *master_key, u8 *session_key, 00043 size_t session_key_len, int is_send, 00044 int is_server); 00045 int __must_check encrypt_pw_block_with_password_hash( 00046 const u8 *password, size_t password_len, 00047 const u8 *password_hash, u8 *pw_block); 00048 int __must_check new_password_encrypted_with_old_nt_password_hash( 00049 const u8 *new_password, size_t new_password_len, 00050 const u8 *old_password, size_t old_password_len, 00051 u8 *encrypted_pw_block); 00052 void nt_password_hash_encrypted_with_block(const u8 *password_hash, 00053 const u8 *block, u8 *cypher); 00054 int old_nt_password_hash_encrypted_with_new_nt_password_hash( 00055 const u8 *new_password, size_t new_password_len, 00056 const u8 *old_password, size_t old_password_len, 00057 u8 *encrypted_password_hash); 00058 00059 #endif /* MS_FUNCS_H */ 00060
1.7.3