00001 /* 00002 * CHAP-MD5 (RFC 1994) 00003 * Copyright (c) 2007-2009, 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 CHAP_H 00016 #define CHAP_H 00017 00018 #define CHAP_MD5_LEN 16 00019 00020 int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge, 00021 size_t challenge_len, u8 *response); 00022 00023 #endif /* CHAP_H */