Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

md5.cpp File Reference

Compute md5. More...

#include <wx/wxprec.h>
#include <wx/wx.h>
#include "md5.hpp"
#include "compat.hpp"

Include dependency graph for md5.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define FF(b, c, d)   (d ^ (b & (c ^ d)))
 First fonction of the MD5 algorithm.

#define FG(b, c, d)   FF (d, b, c)
 Second fonction of the MD5 algorithm.

#define FH(b, c, d)   (b ^ c ^ d)
 Third fonction of the MD5 algorithm.

#define FI(b, c, d)   (c ^ (b | ~d))
 Fourth fonction of the MD5 algorithm.

#define OP(f, a, b, c, d, k, s, T)
#define OP(a, b, c, d, s, T)
#define rol(x, n)   ( ((x) << (n)) | ((x) >> (32-(n))) )
 Rotate a 32 bit integer by n bytes.

#define UNALIGNED_P(p)   (((wxUint32) p) % sizeof(wxUint32) != 0)


Detailed Description

Compute md5.

Definition in file md5.cpp.


Define Documentation

#define FF b,
c,
 )     (d ^ (b & (c ^ d)))
 

First fonction of the MD5 algorithm.

Definition at line 192 of file md5.cpp.

#define FG b,
c,
 )     FF (d, b, c)
 

Second fonction of the MD5 algorithm.

Definition at line 193 of file md5.cpp.

Referenced by MD5::process_block().

#define FH b,
c,
 )     (b ^ c ^ d)
 

Third fonction of the MD5 algorithm.

Definition at line 194 of file md5.cpp.

Referenced by MD5::process_block().

#define FI b,
c,
 )     (c ^ (b | ~d))
 

Fourth fonction of the MD5 algorithm.

Definition at line 195 of file md5.cpp.

Referenced by MD5::process_block().

#define OP f,
a,
b,
c,
d,
k,
s,
 ) 
 

Value:

do \ { \ a += f (b, c, d) + correct_words[k] + T; \ a = rol (a, s); \ a += b; \ } \ while (0)

#define OP a,
b,
c,
d,
s,
 ) 
 

Value:

do \ { \ a += FF(b, c, d) + (*cwp++ = wxUINT32_SWAP_ON_BE(*words)) + T; \ ++words; \ a = rol(a, s); \ a += b; \ } \ while (0)

#define rol x,
 )     ( ((x) << (n)) | ((x) >> (32-(n))) )
 

Rotate a 32 bit integer by n bytes.

Definition at line 199 of file md5.cpp.


Generated on Sun May 30 13:38:00 2004 for wxChecksums by doxygen 1.3.7