FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
md5.c File Reference
+ Include dependency graph for md5.c:

Go to the source code of this file.

Macros

#define F(b, c, d)   (d ^ (b & (c ^ d)))
 
#define G(b, c, d)   F (d, b, c)
 
#define H(b, c, d)   (b ^ c ^ d)
 
#define I(b, c, d)   (c ^ (b | ~d))
 
#define ROTATE_LEFT(x, n)   (((x) << (n)) | ((x) >> (32 - (n))))
 
#define FF(a, b, c, d, x, s, ac)
 
#define GG(a, b, c, d, x, s, ac)
 
#define HH(a, b, c, d, x, s, ac)
 
#define II(a, b, c, d, x, s, ac)
 
#define S11   7
 
#define S12   12
 
#define S13   17
 
#define S14   22
 
#define S21   5
 
#define S22   9
 
#define S23   14
 
#define S24   20
 
#define S31   4
 
#define S32   11
 
#define S33   16
 
#define S34   23
 
#define S41   6
 
#define S42   10
 
#define S43   15
 
#define S44   21
 

Functions

static void md5_transform (md5_context_t *m, u32 *data, u32 *result, int zero_buffer)
 
void md5_init (md5_context_t *c)
 
static void md5_fill_buffer_aligned (md5_context_t *c, u32 *d32)
 
void md5_add (md5_context_t *c, void *data, int data_bytes)
 
void md5_finish (md5_context_t *c, u8 *digest)
 

Macro Definition Documentation

#define F (   b,
  c,
 
)    (d ^ (b & (c ^ d)))

Definition at line 44 of file md5.c.

#define FF (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
do { \
a += F (b, c, d) + x + ac; \
a = ROTATE_LEFT (a, s); \
a += b; \
} while (0)
a
Definition: bitmap.h:516
#define ROTATE_LEFT(x, n)
Definition: md5.c:50
#define F(b, c, d)
Definition: md5.c:44
svmdb_client_t * c

Definition at line 55 of file md5.c.

#define G (   b,
  c,
 
)    F (d, b, c)

Definition at line 45 of file md5.c.

#define GG (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
do { \
a += G (b, c, d) + x + ac; \
a = ROTATE_LEFT (a, s); \
a += b; \
} while (0)
a
Definition: bitmap.h:516
#define ROTATE_LEFT(x, n)
Definition: md5.c:50
#define G(b, c, d)
Definition: md5.c:45
svmdb_client_t * c

Definition at line 62 of file md5.c.

#define H (   b,
  c,
 
)    (b ^ c ^ d)

Definition at line 46 of file md5.c.

#define HH (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
do { \
a += H (b, c, d) + x + ac; \
a = ROTATE_LEFT (a, s); \
a += b; \
} while (0)
a
Definition: bitmap.h:516
#define ROTATE_LEFT(x, n)
Definition: md5.c:50
#define H(b, c, d)
Definition: md5.c:46
svmdb_client_t * c

Definition at line 69 of file md5.c.

#define I (   b,
  c,
 
)    (c ^ (b | ~d))

Definition at line 47 of file md5.c.

#define II (   a,
  b,
  c,
  d,
  x,
  s,
  ac 
)
Value:
do { \
a += I (b, c, d) + x + ac; \
a = ROTATE_LEFT (a, s); \
a += b; \
} while (0)
a
Definition: bitmap.h:516
#define ROTATE_LEFT(x, n)
Definition: md5.c:50
svmdb_client_t * c
#define I(b, c, d)
Definition: md5.c:47

Definition at line 76 of file md5.c.

#define ROTATE_LEFT (   x,
 
)    (((x) << (n)) | ((x) >> (32 - (n))))

Definition at line 50 of file md5.c.

#define S11   7
#define S12   12
#define S13   17
#define S14   22
#define S21   5
#define S22   9
#define S23   14
#define S24   20
#define S31   4
#define S32   11
#define S33   16
#define S34   23
#define S41   6
#define S42   10
#define S43   15
#define S44   21

Function Documentation

void md5_add ( md5_context_t c,
void *  data,
int  data_bytes 
)

Definition at line 235 of file md5.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void md5_fill_buffer_aligned ( md5_context_t c,
u32 d32 
)
inlinestatic

Definition at line 223 of file md5.c.

void md5_finish ( md5_context_t c,
u8 digest 
)

Definition at line 290 of file md5.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void md5_init ( md5_context_t c)

Definition at line 211 of file md5.c.

+ Here is the caller graph for this function:

static void md5_transform ( md5_context_t m,
u32 data,
u32 result,
int  zero_buffer 
)
static

Definition at line 87 of file md5.c.

+ Here is the caller graph for this function: