ms_funcs.h

Go to the documentation of this file.
00001 
00016 #ifndef MS_FUNCS_H
00017 #define MS_FUNCS_H
00018 
00019 int 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 int 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 int 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 int 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 int 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 int nt_password_hash(const u8 *password, size_t password_len,
00044                      u8 *password_hash);
00045 int hash_nt_password_hash(const u8 *password_hash, u8 *password_hash_hash);
00046 int get_master_key(const u8 *password_hash_hash, const u8 *nt_response,
00047                    u8 *master_key);
00048 int 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 int __must_check encrypt_pw_block_with_password_hash(
00052         const u8 *password, size_t password_len,
00053         const u8 *password_hash, u8 *pw_block);
00054 int __must_check new_password_encrypted_with_old_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_pw_block);
00058 void nt_password_hash_encrypted_with_block(const u8 *password_hash,
00059                                            const u8 *block, u8 *cypher);
00060 int old_nt_password_hash_encrypted_with_new_nt_password_hash(
00061         const u8 *new_password, size_t new_password_len,
00062         const u8 *old_password, size_t old_password_len,
00063         u8 *encrypted_password_hash);
00064 
00065 #endif /* MS_FUNCS_H */
00066 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:50 2009 for hostapd by  doxygen 1.6.1