3 * Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
5 * This software may be distributed under the terms of the BSD license.
6 * See README for more details.
12 #define MSCHAPV2_CHAL_LEN 16
13 #define MSCHAPV2_NT_RESPONSE_LEN 24
14 #define MSCHAPV2_AUTH_RESPONSE_LEN 20
15 #define MSCHAPV2_MASTER_KEY_LEN 16
17 const u8 * mschapv2_remove_domain(const u8 *username, size_t *len);
18 int mschapv2_derive_response(const u8 *username, size_t username_len,
19 const u8 *password, size_t password_len,
21 const u8 *auth_challenge,
22 const u8 *peer_challenge,
23 u8 *nt_response, u8 *auth_response,
25 int mschapv2_verify_auth_response(const u8 *auth_response,
26 const u8 *buf, size_t buf_len);
28 #endif /* MSCHAPV2_H */