Anope IRC Services  Version 2.0
Data Structures | Functions | Variables
enc_md5.cpp File Reference
#include "module.h"
#include "modules/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 
)
inlinestatic

Definition at line 47 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 
)
inlinestatic

Definition at line 59 of file enc_md5.cpp.

References F(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned G ( unsigned  x,
unsigned  y,
unsigned  z 
)
inlinestatic

Definition at line 48 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 
)
inlinestatic

Definition at line 65 of file enc_md5.cpp.

References G(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned H ( unsigned  x,
unsigned  y,
unsigned  z 
)
inlinestatic

Definition at line 49 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 
)
inlinestatic

Definition at line 71 of file enc_md5.cpp.

References H(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned I ( unsigned  x,
unsigned  y,
unsigned  z 
)
inlinestatic

Definition at line 50 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 
)
inlinestatic

Definition at line 77 of file enc_md5.cpp.

References I(), and ROTATE_LEFT().

Referenced by MD5Context::Transform().

static unsigned ROTATE_LEFT ( unsigned  x,
unsigned  n 
)
inlinestatic

Definition at line 54 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 84 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 39 of file enc_md5.cpp.

Referenced by MD5Context::Finalize().