Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
md5-coreutils.c File Reference
#include "md5.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
+ Include dependency graph for md5-coreutils.c:

Macros

#define alignof(type)   offsetof (struct { char c; type x; }, x)
#define BLOCKSIZE   4096
#define CYCLIC(w, s)   (w = (w << s) | (w >> (32 - s)))
#define FF(b, c, d)   (d ^ (b & (c ^ d)))
#define FG(b, c, d)   FF (d, b, c)
#define FH(b, c, d)   (b ^ c ^ d)
#define FI(b, c, d)   (c ^ (b | ~d))
#define OP(a, b, c, d, s, T)
#define OP(f, a, b, c, d, k, s, T)
#define SWAP(n)   (n)
#define UNALIGNED_P(p)   (((size_t) p) % alignof (uint32_t) != 0)

Functions

void * md5_finish_ctx (struct md5_ctx *ctx, void *resbuf)
void md5_init_ctx (struct md5_ctx *ctx)
void md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx)
void md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx)
void * md5_read_ctx (const struct md5_ctx *ctx, void *resbuf)

Variables

static const unsigned char fillbuf [64] = { 0x80, 0 }

Macro Definition Documentation

#define alignof (   type)    offsetof (struct { char c; type x; }, x)
#define BLOCKSIZE   4096
#define CYCLIC (   w,
 
)    (w = (w << s) | (w >> (32 - s)))
#define FF (   b,
  c,
 
)    (d ^ (b & (c ^ d)))
#define FG (   b,
  c,
 
)    FF (d, b, c)
#define FH (   b,
  c,
 
)    (b ^ c ^ d)
#define FI (   b,
  c,
 
)    (c ^ (b | ~d))
#define OP (   a,
  b,
  c,
  d,
  s,
 
)
Value:
do \
{ \
a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \
++words; \
CYCLIC (a, s); \
a += b; \
} \
while (0)
#define OP (   f,
  a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
do \
{ \
a += f (b, c, d) + correct_words[k] + T; \
CYCLIC (a, s); \
a += b; \
} \
while (0)
#define SWAP (   n)    (n)
#define UNALIGNED_P (   p)    (((size_t) p) % alignof (uint32_t) != 0)

Function Documentation

void* md5_finish_ctx ( struct md5_ctx ctx,
void *  resbuf 
)
void md5_init_ctx ( struct md5_ctx ctx)
void md5_process_block ( const void *  buffer,
size_t  len,
struct md5_ctx ctx 
)
void md5_process_bytes ( const void *  buffer,
size_t  len,
struct md5_ctx ctx 
)
void* md5_read_ctx ( const struct md5_ctx ctx,
void *  resbuf 
)

Variable Documentation

const unsigned char fillbuf[64] = { 0x80, 0 }
static