API Documentation
Loading...
Searching...
No Matches
md5.cpp File Reference
#include <string.h>
#include <NDEVR/md5.h>
Include dependency graph for md5.cpp:

Namespaces

namespace  NDEVR
 

Macros

#define F(x, y, z)
 
#define G(x, y, z)
 
#define GET(n)
 
#define H(x, y, z)
 
#define H2(x, y, z)
 
#define I(x, y, z)
 
#define OUT(dst, src)
 
#define SET(n)
 
#define STEP(f, a, b, c, d, x, t, s)
 

Macro Definition Documentation

◆ F

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

◆ G

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

◆ GET

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

◆ H

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

◆ H2

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

◆ I

#define I ( x,
y,
z )
Value:
((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);

◆ SET

#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))

◆ STEP

#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);