FreeRDP
md5.c File Reference
#include <string.h>
#include "md5.h"

Macros

#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
 
#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 STEP(f, a, b, c, d, x, t, s)
 
#define SET(n)
 
#define GET(n)   (ctx->block[(n)])
 
#define OUT(dst, src)
 

Functions

static const void * body (WINPR_MD5_CTX *ctx, const void *data, unsigned long size)
 
void winpr_MD5_Init (WINPR_MD5_CTX *ctx)
 
void winpr_MD5_Update (WINPR_MD5_CTX *ctx, const void *data, unsigned long size)
 
void winpr_MD5_Final (unsigned char *result, WINPR_MD5_CTX *ctx)
 

Macro Definition Documentation

◆ F

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

◆ G

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

◆ GET

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

◆ H

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

◆ H2

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

◆ I

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

◆ OUT

#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);
static __inline__ const void * src
Definition: TPCircularBuffer.h:202

◆ SET

#define SET (   n)
Value:
(ctx->block[(n)] = (winpr_MD5_u32plus)ptr[(n)*4] | ((winpr_MD5_u32plus)ptr[(n)*4 + 1] << 8) | \
((winpr_MD5_u32plus)ptr[(n)*4 + 2] << 16) | \
((winpr_MD5_u32plus)ptr[(n)*4 + 3] << 24))
void * ptr
Definition: TPCircularBuffer.h:205
UINT32 winpr_MD5_u32plus
Definition: md5.h:34

◆ STEP

#define STEP (   f,
  a,
  b,
  c,
  d,
  x,
  t,
 
)
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a)&0xffffffff) >> (32 - (s)))); \
(a) += (b);
UINT16 x
Definition: include/freerdp/event.h:111

Function Documentation

◆ body()

static const void* body ( WINPR_MD5_CTX ctx,
const void *  data,
unsigned long  size 
)
static
Here is the caller graph for this function:

◆ winpr_MD5_Final()

void winpr_MD5_Final ( unsigned char *  result,
WINPR_MD5_CTX ctx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_MD5_Init()

void winpr_MD5_Init ( WINPR_MD5_CTX ctx)
Here is the caller graph for this function:

◆ winpr_MD5_Update()

void winpr_MD5_Update ( WINPR_MD5_CTX ctx,
const void *  data,
unsigned long  size 
)
Here is the call graph for this function:
Here is the caller graph for this function: