Macros | Functions
md5.cpp File Reference
#include <string.h>
#include <external/md5.h>
Include dependency graph for md5.cpp:

Go to the source code of this file.

Macros

#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
 
#define GET(n)   (ctx->block[(n)])
 
#define H(x, y, z)   (((x) ^ (y)) ^ (z))
 
#define H2(x, y, z)   ((x) ^ ((y) ^ (z)))
 
#define I(x, y, z)   ((y) ^ ((x) | ~(z)))
 
#define OUT(dst, src)
 
#define SET(n)
 
#define STEP(f, a, b, c, d, x, t, s)
 

Functions

static const void * body (MD5_CTX *ctx, const void *data, unsigned long size)
 
void MD5_Final (unsigned char *result, MD5_CTX *ctx)
 Finalize MD5 context. More...
 
void MD5_Init (MD5_CTX *ctx)
 Init MD5 context. More...
 
void MD5_Update (MD5_CTX *ctx, const void *data, unsigned long size)
 Update MD5 context. More...
 

Macro Definition Documentation

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

Definition at line 51 of file md5.cpp.

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

Definition at line 52 of file md5.cpp.

#define GET (   n)    (ctx->block[(n)])

Definition at line 92 of file md5.cpp.

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

Definition at line 53 of file md5.cpp.

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

Definition at line 54 of file md5.cpp.

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

Definition at line 55 of file md5.cpp.

#define OUT (   dst,
  src 
)
Value:
(dst)[0] = (unsigned char)(src); \
(dst)[1] = (unsigned char)((src) >> 8); \
(dst)[2] = (unsigned char)((src) >> 16); \
(dst)[3] = (unsigned char)((src) >> 24);

Definition at line 252 of file md5.cpp.

#define SET (   n)
Value:
(ctx->block[(n)] = \
(MD5_u32plus)ptr[(n) * 4] | \
((MD5_u32plus)ptr[(n) * 4 + 1] << 8) | \
((MD5_u32plus)ptr[(n) * 4 + 2] << 16) | \
((MD5_u32plus)ptr[(n) * 4 + 3] << 24))
uint32_t MD5_u32plus
Integer type to use.
Definition: md5.h:34

Definition at line 86 of file md5.cpp.

#define STEP (   f,
  a,
  b,
  c,
  d,
  x,
  t,
  s 
)
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \
(a) += (b);
f
XmlRpcServer s

Definition at line 60 of file md5.cpp.

Function Documentation

static const void* body ( MD5_CTX ctx,
const void *  data,
unsigned long  size 
)
static

Definition at line 100 of file md5.cpp.

void MD5_Final ( unsigned char *  result,
MD5_CTX ctx 
)

Finalize MD5 context.

Parameters
resultOutput
ctxContext

Definition at line 258 of file md5.cpp.

void MD5_Init ( MD5_CTX ctx)

Init MD5 context.

Parameters
ctxContext

Definition at line 207 of file md5.cpp.

void MD5_Update ( MD5_CTX ctx,
const void *  data,
unsigned long  size 
)

Update MD5 context.

Parameters
ctxContext
dataData
sizeLength

Definition at line 218 of file md5.cpp.



swarmros
Author(s):
autogenerated on Fri Apr 3 2020 03:42:48