8 #define MSCHAPV2_CHAL_LEN 16
9 #define MSCHAPV2_NT_RESPONSE_LEN 24
10 #define MSCHAPV2_AUTH_RESPONSE_LEN 20
11 #define MSCHAPV2_MASTER_KEY_LEN 16
13 const u8 * mschapv2_remove_domain(
const u8 *username,
size_t *len);
14 int mschapv2_derive_response(
const u8 *username,
size_t username_len,
15 const u8 *password,
size_t password_len,
17 const u8 *auth_challenge,
18 const u8 *peer_challenge,
19 u8 *nt_response, u8 *auth_response,
21 int mschapv2_verify_auth_response(
const u8 *auth_response,
22 const u8 *buf,
size_t buf_len);