⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chap.c

📁 IEEE802.11 a/b/g 客户端应用程序源代码
💻 C
字号:
/* * CHAP-MD5 (RFC 1994) * Copyright (c) 2007, Jouni Malinen <j@w1.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively, this software may be distributed under the terms of BSD * license. * * See README and COPYING for more details. */#include "includes.h"#include "common.h"#include "md5.h"#include "crypto.h"#include "chap.h"void chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,	      size_t challenge_len, u8 *response){	const u8 *addr[3];	size_t len[3];	addr[0] = &id;	len[0] = 1;	addr[1] = secret;	len[1] = secret_len;	addr[2] = challenge;	len[2] = challenge_len;	md5_vector(3, addr, len, response);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -