1 /* 2 * MSCHAPV2 3 */ 4 5 6 #ifndef MSCHAPV2_H 7 #define MSCHAPV2_H 8 9 #define MSCHAPV2_CHAL_LEN 16 10 #define MSCHAPV2_NT_RESPONSE_LEN 24 11 #define MSCHAPV2_AUTH_RESPONSE_LEN 20 12 #define MSCHAPV2_MASTER_KEY_LEN 16 13 14 const u8 * mschapv2_remove_domain(const u8 *username, size_t *len); 15 int mschapv2_derive_response(const u8 *username, size_t username_len, 16 const u8 *password, size_t password_len, 17 int pwhash, 18 const u8 *auth_challenge, 19 const u8 *peer_challenge, 20 u8 *nt_response, u8 *auth_response, 21 u8 *master_key); 22 int mschapv2_verify_auth_response(const u8 *auth_response, 23 const u8 *buf, size_t buf_len); 24 #endif /* MSCHAPV2_H */ 25