ms_funcs.h

Go to the documentation of this file.
00001 
00016 #ifndef MS_FUNCS_H
00017 #define MS_FUNCS_H
00018 
00019 void generate_nt_response(const u8 *auth_challenge, const u8 *peer_challenge,
00020                           const u8 *username, size_t username_len,
00021                           const u8 *password, size_t password_len,
00022                           u8 *response);
00023 void generate_nt_response_pwhash(const u8 *auth_challenge,
00024                                  const u8 *peer_challenge,
00025                                  const u8 *username, size_t username_len,
00026                                  const u8 *password_hash,
00027                                  u8 *response);
00028 void generate_authenticator_response(const u8 *password, size_t password_len,
00029                                      const u8 *peer_challenge,
00030                                      const u8 *auth_challenge,
00031                                      const u8 *username, size_t username_len,
00032                                      const u8 *nt_response, u8 *response);
00033 void generate_authenticator_response_pwhash(
00034         const u8 *password_hash,
00035         const u8 *peer_challenge, const u8 *auth_challenge,
00036         const u8 *username, size_t username_len,
00037         const u8 *nt_response, u8 *response);
00038 void nt_challenge_response(const u8 *challenge, const u8 *password,
00039                            size_t password_len, u8 *response);
00040 
00041 void challenge_response(const u8 *challenge, const u8 *password_hash,
00042                         u8 *response);
00043 void nt_password_hash(const u8 *password, size_t password_len,
00044                       u8 *password_hash);
00045 void hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash);
00046 void get_master_key(const u8 *password_hash_hash, const u8 *nt_response,
00047                     u8 *master_key);
00048 void get_asymetric_start_key(const u8 *master_key, u8 *session_key,
00049                              size_t session_key_len, int is_send,
00050                              int is_server);
00051 void new_password_encrypted_with_old_nt_password_hash(
00052         const u8 *new_password, size_t new_password_len,
00053         const u8 *old_password, size_t old_password_len,
00054         u8 *encrypted_pw_block);
00055 void old_nt_password_hash_encrypted_with_new_nt_password_hash(
00056         const u8 *new_password, size_t new_password_len,
00057         const u8 *old_password, size_t old_password_len,
00058         u8 *encrypted_password_hash);
00059 
00060 #endif /* MS_FUNCS_H */
00061 

Generated on Sun Dec 31 13:43:28 2006 for hostapd by  doxygen 1.4.2