The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ModuleRIPEMD160 Class Reference

Inheritance diagram for ModuleRIPEMD160:

Inheritance graph
[legend]
Collaboration diagram for ModuleRIPEMD160:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ModuleRIPEMD160 (InspIRCd *Me)
virtual ~ModuleRIPEMD160 ()
virtual const char * OnRequest (Request *request)
 Called whenever a Request class is sent to your module by another module.
virtual Version GetVersion ()
 Returns the version number of a Module.

Private Member Functions

void MDinit (dword *MDbuf, unsigned int *key)
void compress (dword *MDbuf, dword *X)
void MDfinish (dword *MDbuf, byte *strptr, dword lswlen, dword mswlen)
byteRMD (byte *message, dword length, unsigned int *key)

Private Attributes

unsigned int * currkey
const char * chars

Detailed Description

Definition at line 152 of file m_ripemd160.cpp.


Constructor & Destructor Documentation

ModuleRIPEMD160::ModuleRIPEMD160 InspIRCd Me  )  [inline]
 

Definition at line 445 of file m_ripemd160.cpp.

References ModuleManager::Attach(), I_OnRequest, InspIRCd::Modules, ModuleManager::PublishInterface(), and Module::ServerInstance.

virtual ModuleRIPEMD160::~ModuleRIPEMD160  )  [inline, virtual]
 

Definition at line 452 of file m_ripemd160.cpp.

References InspIRCd::Modules, Module::ServerInstance, and ModuleManager::UnpublishInterface().


Member Function Documentation

void ModuleRIPEMD160::compress dword MDbuf,
dword X
[inline, private]
 

Definition at line 179 of file m_ripemd160.cpp.

References FF, FFF, GG, GGG, HH, HHH, II, III, JJ, and JJJ.

Referenced by MDfinish(), and RMD().

virtual Version ModuleRIPEMD160::GetVersion  )  [inline, virtual]
 

Returns the version number of a Module.

The method should return a Version object with its version information assigned via Version::Version

Reimplemented from Module.

Definition at line 495 of file m_ripemd160.cpp.

References API_VERSION, VF_SERVICEPROVIDER, and VF_VENDOR.

void ModuleRIPEMD160::MDfinish dword MDbuf,
byte strptr,
dword  lswlen,
dword  mswlen
[inline, private]
 

Definition at line 377 of file m_ripemd160.cpp.

References compress().

Referenced by RMD().

void ModuleRIPEMD160::MDinit dword MDbuf,
unsigned int *  key
[inline, private]
 

Definition at line 155 of file m_ripemd160.cpp.

References DEBUG, LogManager::Log(), InspIRCd::Logs, and Module::ServerInstance.

Referenced by RMD().

virtual const char* ModuleRIPEMD160::OnRequest Request request  )  [inline, virtual]
 

Called whenever a Request class is sent to your module by another module.

Please see the documentation of Request::Send() for further information. The Request sent can always be assumed to be non-NULL, you should not change the request object or its data. Your method may return arbitary data in the char* result which the requesting module may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).

Parameters:
request The Request class being received

Reimplemented from Module.

Definition at line 458 of file m_ripemd160.cpp.

References chars, currkey, DEBUG, HashRequest::GetHashData(), Request::GetId(), HashRequest::GetKeyData(), HashRequest::GetOutputs(), LogManager::Log(), InspIRCd::Logs, MAXBUF, RMD(), RMDsize, and Module::ServerInstance.

byte* ModuleRIPEMD160::RMD byte message,
dword  length,
unsigned int *  key
[inline, private]
 

Definition at line 407 of file m_ripemd160.cpp.

References BYTES_TO_DWORD, compress(), DEBUG, LogManager::Log(), InspIRCd::Logs, MDfinish(), MDinit(), RMDsize, and Module::ServerInstance.

Referenced by OnRequest().


Member Data Documentation

const char* ModuleRIPEMD160::chars [private]
 

Definition at line 441 of file m_ripemd160.cpp.

Referenced by OnRequest().

unsigned int* ModuleRIPEMD160::currkey [private]
 

Definition at line 440 of file m_ripemd160.cpp.

Referenced by OnRequest().


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