2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* MSCHAPV2 (RFC 2759)
|
|
|
|
* Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MSCHAPV2_H
|
|
|
|
#define MSCHAPV2_H
|
|
|
|
|
|
|
|
#define MSCHAPV2_CHAL_LEN 16
|
|
|
|
#define MSCHAPV2_NT_RESPONSE_LEN 24
|
|
|
|
#define MSCHAPV2_AUTH_RESPONSE_LEN 20
|
|
|
|
#define MSCHAPV2_MASTER_KEY_LEN 16
|
|
|
|
|
|
|
|
const u8 * mschapv2_remove_domain(const u8 *username, size_t *len);
|
2009-08-16 17:38:35 +02:00
|
|
|
int mschapv2_derive_response(const u8 *username, size_t username_len,
|
|
|
|
const u8 *password, size_t password_len,
|
|
|
|
int pwhash,
|
|
|
|
const u8 *auth_challenge,
|
|
|
|
const u8 *peer_challenge,
|
|
|
|
u8 *nt_response, u8 *auth_response,
|
|
|
|
u8 *master_key);
|
2008-02-28 02:34:43 +01:00
|
|
|
int mschapv2_verify_auth_response(const u8 *auth_response,
|
|
|
|
const u8 *buf, size_t buf_len);
|
|
|
|
|
|
|
|
#endif /* MSCHAPV2_H */
|