Data Structures | Functions | Variables

enc_md5.cpp File Reference

#include "module.h"
#include "encryption.h"
Include dependency graph for enc_md5.cpp:

Go to the source code of this file.

Data Structures

class  MD5Context
class  MD5Provider
class  EMD5

Functions

static unsigned F (unsigned x, unsigned y, unsigned z)
static unsigned G (unsigned x, unsigned y, unsigned z)
static unsigned H (unsigned x, unsigned y, unsigned z)
static unsigned I (unsigned x, unsigned y, unsigned z)
static unsigned ROTATE_LEFT (unsigned x, unsigned n)
static void FF (unsigned &a, unsigned b, unsigned c, unsigned d, unsigned x, unsigned s, unsigned ac)
static void GG (unsigned &a, unsigned b, unsigned c, unsigned d, unsigned x, unsigned s, unsigned ac)
static void HH (unsigned &a, unsigned b, unsigned c, unsigned d, unsigned x, unsigned s, unsigned ac)
static void II (unsigned &a, unsigned b, unsigned c, unsigned d, unsigned x, unsigned s, unsigned ac)

Variables

static unsigned char PADDING [64]
static const uint32_t md5_iv [4]

Function Documentation

static unsigned F ( unsigned  x,
unsigned  y,
unsigned  z 
) [inline, static]

Definition at line 49 of file enc_md5.cpp.

Referenced by FF().

static void FF ( unsigned &  a,
unsigned  b,
unsigned  c,
unsigned  d,
unsigned  x,
unsigned  s,
unsigned  ac 
) [inline, static]

Definition at line 61 of file enc_md5.cpp.

References F(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned G ( unsigned  x,
unsigned  y,
unsigned  z 
) [inline, static]

Definition at line 50 of file enc_md5.cpp.

Referenced by GG().

static void GG ( unsigned &  a,
unsigned  b,
unsigned  c,
unsigned  d,
unsigned  x,
unsigned  s,
unsigned  ac 
) [inline, static]

Definition at line 67 of file enc_md5.cpp.

References G(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned H ( unsigned  x,
unsigned  y,
unsigned  z 
) [inline, static]

Definition at line 51 of file enc_md5.cpp.

Referenced by HH().

static void HH ( unsigned &  a,
unsigned  b,
unsigned  c,
unsigned  d,
unsigned  x,
unsigned  s,
unsigned  ac 
) [inline, static]

Definition at line 73 of file enc_md5.cpp.

References H(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned I ( unsigned  x,
unsigned  y,
unsigned  z 
) [inline, static]

Definition at line 52 of file enc_md5.cpp.

Referenced by II().

static void II ( unsigned &  a,
unsigned  b,
unsigned  c,
unsigned  d,
unsigned  x,
unsigned  s,
unsigned  ac 
) [inline, static]

Definition at line 79 of file enc_md5.cpp.

References I(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned ROTATE_LEFT ( unsigned  x,
unsigned  n 
) [inline, static]

Definition at line 56 of file enc_md5.cpp.

Referenced by FF(), GG(), HH(), and II().


Variable Documentation

const uint32_t md5_iv[4] [static]
Initial value:
{
        0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476
}

Definition at line 86 of file enc_md5.cpp.

Referenced by MD5Provider::GetDefaultIV(), and MD5Context::MD5Context().

unsigned char PADDING[64] [static]
Initial value:
 {
        0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
}

Definition at line 41 of file enc_md5.cpp.

Referenced by MD5Context::Finalize().