gloox  1.1-svn
Public Member Functions | Static Public Member Functions | List of all members
MD4 Class Reference

#include <md4.h>

Public Member Functions

 MD4 ()
virtual ~MD4 ()
void feed (const unsigned char *data, int bytes)
void feed (const std::string &data)
void finalize ()
const std::string hex ()
const std::string binary ()
void reset ()

Static Public Member Functions

static const std::string md4 (const std::string &data)

Detailed Description

An MD4 implementation.

This is an implementation of the Message Digest Algorithm as decribed in RFC 1320. The original code has been taken from an MD5 implementation by L. Peter Deutsch.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
1.1

Definition at line 81 of file md4.h.

Constructor & Destructor Documentation

MD4 ( )

Constructs a new MD4 object.

Definition at line 114 of file md4.cpp.

~MD4 ( )
virtual

Virtual Destructor.

Definition at line 120 of file md4.cpp.

Member Function Documentation

const std::string binary ( )

Use this function to retrieve the raw binary hash.

Returns
The raw binary hash.

Definition at line 370 of file md4.cpp.

void feed ( const unsigned char *  data,
int  bytes 
)

Use this function to feed the hash.

Parameters
dataThe data to hash.
bytesThe size of data in bytes.

Definition at line 299 of file md4.cpp.

void feed ( const std::string &  data)

Use this function to feed the hash.

Parameters
dataThe data to hash.

Definition at line 294 of file md4.cpp.

void finalize ( )

This function is used to finalize the hash operation. Use it after the last feed() and before calling hex().

Definition at line 337 of file md4.cpp.

const std::string hex ( )

Use this function to retrieve the hash value in hex.

Returns
The hash in hex notation.

Definition at line 357 of file md4.cpp.

const std::string md4 ( const std::string &  data)
static

Static function that returns a hash of the given data.

Parameters
dataInput data to hash.
Returns
The data's hash in hex notation.

Definition at line 107 of file md4.cpp.

void reset ( )

Use this function to reset the hash.

Definition at line 382 of file md4.cpp.


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