mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-26 17:28:29 -05:00
0f3d578efc
Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
29 lines
602 B
C
29 lines
602 B
C
/*
|
|
* CHAP-MD5 (RFC 1994)
|
|
* Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#include "includes.h"
|
|
|
|
#include "common.h"
|
|
#include "crypto/crypto.h"
|
|
#include "chap.h"
|
|
|
|
int 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;
|
|
return md5_vector(3, addr, len, response);
|
|
}
|