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

Macros

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

Functions

static const void * body (WINPR_MD4_CTX *ctx, const void *data, unsigned long size)
 
void winpr_MD4_Init (WINPR_MD4_CTX *ctx)
 
void winpr_MD4_Update (WINPR_MD4_CTX *ctx, const void *data, unsigned long size)
 
void winpr_MD4_Final (unsigned char *result, WINPR_MD4_CTX *ctx)
 

Macro Definition Documentation

◆ F

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

◆ G

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

◆ GET

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

◆ H

#define H (   x,
  y,
 
)    ((x) ^ (y) ^ (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_MD4_u32plus)ptr[(n)*4] | ((winpr_MD4_u32plus)ptr[(n)*4 + 1] << 8) | \
((winpr_MD4_u32plus)ptr[(n)*4 + 2] << 16) | \
((winpr_MD4_u32plus)ptr[(n)*4 + 3] << 24))
void * ptr
Definition: TPCircularBuffer.h:205
UINT32 winpr_MD4_u32plus
Definition: md4.h:32

◆ STEP

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

Function Documentation

◆ body()

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

◆ winpr_MD4_Final()

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

◆ winpr_MD4_Init()

void winpr_MD4_Init ( WINPR_MD4_CTX ctx)
Here is the caller graph for this function:

◆ winpr_MD4_Update()

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