RSB  0.7.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::util::MD5Hasher Class Reference
Collaboration diagram for rsb::util::MD5Hasher:
Collaboration graph

Public Types

typedef unsigned int u32
typedef unsigned char byte

Public Member Functions

 MD5Hasher ()
 ~MD5Hasher ()
bytehash (byte *buf, size_t nbytes)
 FPM: At this point I diverge from GnuPG's implementation to write my own wrapper function.

Private Member Functions

void init ()
void transform (byte *data)
 transform n*64 bytes
void write (byte *inbuf, size_t inlen)
 The routine updates the message-digest context to account for the presence of each of the characters inBuf[0..inLen-1] in the message whose digest is being computed.
void final ()
 The routine final terminates the message-digest computation and ends with the desired message digest in mdContext->digest[0...15].
byteread ()

Private Attributes

u32 A
u32 B
u32 C
u32 D
u32 nblocks
byte buf [64]
int count

Detailed Description

Definition at line 76 of file MD5.cpp.

Member Typedef Documentation

typedef unsigned char rsb::util::MD5Hasher::byte

Definition at line 80 of file MD5.cpp.

typedef unsigned int rsb::util::MD5Hasher::u32

Definition at line 79 of file MD5.cpp.

Constructor & Destructor Documentation

rsb::util::MD5Hasher::MD5Hasher ( )
inline

Definition at line 82 of file MD5.cpp.

rsb::util::MD5Hasher::~MD5Hasher ( )
inline

Definition at line 86 of file MD5.cpp.

Member Function Documentation

void rsb::util::MD5Hasher::final ( )
inlineprivate

The routine final terminates the message-digest computation and ends with the desired message digest in mdContext->digest[0...15].

The handle is prepared for a new MD5 cycle. Returns 16 bytes representing the digest.

Definition at line 297 of file MD5.cpp.

References X.

byte* rsb::util::MD5Hasher::hash ( byte buf,
size_t  nbytes 
)
inline

FPM: At this point I diverge from GnuPG's implementation to write my own wrapper function.

I'll use this to hash the passphrase.

Definition at line 93 of file MD5.cpp.

void rsb::util::MD5Hasher::init ( )
inlineprivate

Definition at line 109 of file MD5.cpp.

byte* rsb::util::MD5Hasher::read ( )
inlineprivate

Definition at line 380 of file MD5.cpp.

void rsb::util::MD5Hasher::transform ( byte data)
inlineprivate

transform n*64 bytes

Definition at line 124 of file MD5.cpp.

References FG, FH, FI, and OP.

void rsb::util::MD5Hasher::write ( byte inbuf,
size_t  inlen 
)
inlineprivate

The routine updates the message-digest context to account for the presence of each of the characters inBuf[0..inLen-1] in the message whose digest is being computed.

Definition at line 255 of file MD5.cpp.

Member Data Documentation

u32 rsb::util::MD5Hasher::A
private

Definition at line 384 of file MD5.cpp.

u32 rsb::util::MD5Hasher::B
private

Definition at line 385 of file MD5.cpp.

byte rsb::util::MD5Hasher::buf[64]
private

Definition at line 389 of file MD5.cpp.

u32 rsb::util::MD5Hasher::C
private

Definition at line 386 of file MD5.cpp.

int rsb::util::MD5Hasher::count
private

Definition at line 390 of file MD5.cpp.

u32 rsb::util::MD5Hasher::D
private

Definition at line 387 of file MD5.cpp.

u32 rsb::util::MD5Hasher::nblocks
private

Definition at line 388 of file MD5.cpp.


The documentation for this class was generated from the following file: