Defines | Typedefs | Functions
md5-internal.c File Reference
#include "includes.h"
#include "common.h"
#include "md5.h"
#include "md5_i.h"
#include "crypto.h"
Include dependency graph for md5-internal.c:

Go to the source code of this file.

Defines

#define byteReverse(buf, len)   /* Nothing */
#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 )

Typedefs

typedef struct MD5Context MD5_CTX

Functions

int md5_vector (size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
void MD5Final (unsigned char digest[16], struct MD5Context *ctx)
void MD5Init (struct MD5Context *ctx)
static void MD5Transform (u32 buf[4], u32 const in[16])
void MD5Update (struct MD5Context *ctx, unsigned char const *buf, unsigned len)

Define Documentation

#define byteReverse (   buf,
  len 
)    /* Nothing */

Definition at line 69 of file md5-internal.c.

#define F1 (   x,
  y,
 
)    (z ^ (x & (y ^ z)))

Definition at line 197 of file md5-internal.c.

#define F2 (   x,
  y,
 
)    F1(z, x, y)

Definition at line 198 of file md5-internal.c.

#define F3 (   x,
  y,
 
)    (x ^ y ^ z)

Definition at line 199 of file md5-internal.c.

#define F4 (   x,
  y,
 
)    (y ^ (x | ~z))

Definition at line 200 of file md5-internal.c.

#define MD5STEP (   f,
  w,
  x,
  y,
  z,
  data,
  s 
)    ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )

Definition at line 203 of file md5-internal.c.


Typedef Documentation

typedef struct MD5Context MD5_CTX

Definition at line 26 of file md5-internal.c.


Function Documentation

int md5_vector ( size_t  num_elem,
const u8 *  addr[],
const size_t *  len,
u8 *  mac 
)

md5_vector - MD5 hash for data vector : Number of elements in the data vector : Pointers to the data areas : Lengths of the data blocks : Buffer for the hash Returns: 0 on success, -1 of failure

Definition at line 37 of file md5-internal.c.

void MD5Final ( unsigned char  digest[16],
struct MD5Context ctx 
)

Definition at line 153 of file md5-internal.c.

void MD5Init ( struct MD5Context ctx)

Definition at line 90 of file md5-internal.c.

static void MD5Transform ( u32  buf[4],
u32 const  in[16] 
) [static]

Definition at line 211 of file md5-internal.c.

void MD5Update ( struct MD5Context ctx,
unsigned char const *  buf,
unsigned  len 
)

Definition at line 105 of file md5-internal.c.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:38