Dmitry Shmidt | 8d520ff | 2011-05-09 14:06:53 -0700 | [diff] [blame] | 1 | /* |
| 2 | * CHAP-MD5 (RFC 1994) |
| 3 | * Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi> |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License version 2 as |
| 7 | * published by the Free Software Foundation. |
| 8 | * |
| 9 | * Alternatively, this software may be distributed under the terms of BSD |
| 10 | * license. |
| 11 | * |
| 12 | * See README and COPYING for more details. |
| 13 | */ |
| 14 | |
| 15 | #ifndef CHAP_H |
| 16 | #define CHAP_H |
| 17 | |
| 18 | #define CHAP_MD5_LEN 16 |
| 19 | |
| 20 | int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge, |
| 21 | size_t challenge_len, u8 *response); |
| 22 | |
| 23 | #endif /* CHAP_H */ |