Select one of the symbols to view example projects that use it.
 
Outline
#define CHAP_MD5
#include "utils/includes.h"
#include "utils/common.h"
#include "crypto/crypto.h"
#include "eap_peer/chap.h"
chap_md5(u8, const u8 *, size_t, const u8 *, size_t, u8 *)
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/wpa_supplicant/src/eap_peer/chap.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * CHAP-MD5 * *//* ... */ #ifndef CHAP_MD5 #define CHAP_MD5 #include "utils/includes.h" #include "utils/common.h" #include "crypto/crypto.h" #include "eap_peer/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); }{ ... } /* ... */#endif /* CHAP_MD5 */
Details
Show:
from
Types: Columns: