mschapv2.h
Go to the documentation of this file.
00001 /*
00002  * MSCHAPV2 (RFC 2759)
00003  * Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef MSCHAPV2_H
00016 #define MSCHAPV2_H
00017 
00018 #define MSCHAPV2_CHAL_LEN 16
00019 #define MSCHAPV2_NT_RESPONSE_LEN 24
00020 #define MSCHAPV2_AUTH_RESPONSE_LEN 20
00021 #define MSCHAPV2_MASTER_KEY_LEN 16
00022 
00023 const u8 * mschapv2_remove_domain(const u8 *username, size_t *len);
00024 int mschapv2_derive_response(const u8 *username, size_t username_len,
00025                              const u8 *password, size_t password_len,
00026                              int pwhash,
00027                              const u8 *auth_challenge,
00028                              const u8 *peer_challenge,
00029                              u8 *nt_response, u8 *auth_response,
00030                              u8 *master_key);
00031 int mschapv2_verify_auth_response(const u8 *auth_response,
00032                                   const u8 *buf, size_t buf_len);
00033 
00034 #endif /* MSCHAPV2_H */


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:35