Go to the source code of this file.
Classes | |
struct | WPA_CALC_STATE |
Macros | |
#define | __FILE_ID__ "ydef" |
#define | byteReverse(buf, len) |
#define | F1(x, y, z) (z ^ (x & (y ^ z))) |
#define | F2(x, y, z) F1(z, x, y) |
#define | F3(x, y, z) (x ^ y ^ z) |
#define | F4(x, y, z) (y ^ (x | ~z)) |
#define | MD5STEP(f, w, x, y, z, data, s) ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) |
Functions | |
void | bin2str (char *to, const u8 *p, u16 len, u8 addnull) |
static char | btohexa_low_high (u8 b) |
static char | btohexa_low_low (u8 b) |
int | CheckWSAuth (u32 nonce, const u8 *ha1, const u8 *to_verify, u8 *out) |
void | ComputeAuthHA1 (u8 *ha1, const char *user, const char *pass, const char *realm) |
void | ComputeAuthHA2 (u8 *ha2, const char *method, const char *uri) |
void | ComputeAuthResponse (char *buf, const u8 *ha1, const char *nonce, const char *nc, const char *cnonce, const u8 *ha2) |
static void | initshaw (const char *s, u16 ofs, u8 pad, u16 xinit) |
static void | itershaw (const u32 *s) |
void | MD5AddData (HASH_SUM *ctx, const u8 *buf, u32 len) |
void | MD5Calculate (HASH_SUM *ctx, u8 digest[16]) |
void | MD5Initialize (HASH_SUM *ctx) |
static void | MD5Transform (u32 buf[4], u32 const in[16]) |
u32 | yapiGetCNonce (u32 nc) |
void | yDigestAuthorization (char *buf, int bufsize, const char *user, const char *realm, const u8 *ha1, const char *nonce, const char *opaque, u32 *nc, const char *method, const char *uri) |
void | yInitPsk (const char *pass, const char *ssid) |
int | yIterPsk (u8 *res, const char *ssid) |
int | yParseWWWAuthenticate (char *replybuf, int replysize, char **method, char **realm, char **qop, char **nonce, char **opaque) |
u8 * | ySHA1 (const char *text) |
Variables | |
const u32 | sha1_init [5] = { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 } |
static WPA_CALC_STATE | wpak = { -1 } |
int CheckWSAuth | ( | u32 | nonce, |
const u8 * | ha1, | ||
const u8 * | to_verify, | ||
u8 * | out | ||
) |
void ComputeAuthHA1 | ( | u8 * | ha1, |
const char * | user, | ||
const char * | pass, | ||
const char * | realm | ||
) |
void ComputeAuthHA2 | ( | u8 * | ha2, |
const char * | method, | ||
const char * | uri | ||
) |
void ComputeAuthResponse | ( | char * | buf, |
const u8 * | ha1, | ||
const char * | nonce, | ||
const char * | nc, | ||
const char * | cnonce, | ||
const u8 * | ha2 | ||
) |
|
static |
|
static |
void yDigestAuthorization | ( | char * | buf, |
int | bufsize, | ||
const char * | user, | ||
const char * | realm, | ||
const u8 * | ha1, | ||
const char * | nonce, | ||
const char * | opaque, | ||
u32 * | nc, | ||
const char * | method, | ||
const char * | uri | ||
) |
int yParseWWWAuthenticate | ( | char * | replybuf, |
int | replysize, | ||
char ** | method, | ||
char ** | realm, | ||
char ** | qop, | ||
char ** | nonce, | ||
char ** | opaque | ||
) |
const u32 sha1_init[5] = { 0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0 } |
|
static |