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

HashKeyRequest Class Reference

Send this class to hashing module to change the IVs (keys) to use for hashing. More...

#include <m_hash.h>

Inheritance diagram for HashKeyRequest:

Inheritance graph
[legend]
Collaboration diagram for HashKeyRequest:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 HashKeyRequest (Module *Me, Module *Target, unsigned int *sdata)
 Initialize HashKeyRequest for sending.

Detailed Description

Send this class to hashing module to change the IVs (keys) to use for hashing.

You should make sure you know the state of the module before you send this class, e.g. by first sending an HashResetRequest class. The default values for the IV's are those specified in the Hash specification. Only in very special circumstances should you need to change the IV's (see for example m_cloaking.cpp)

Example:

 unsigned int iv[] = { 0xFFFFFFFF, 0x00000000, 0xAAAAAAAA, 0xCCCCCCCC };
 HashKeyRequest(this, HashModule, iv);

Definition at line 155 of file m_hash.h.


Constructor & Destructor Documentation

HashKeyRequest::HashKeyRequest Module Me,
Module Target,
unsigned int *  sdata
[inline]
 

Initialize HashKeyRequest for sending.

Parameters:
Me A pointer to the sending module
Target A pointer to the hashing module
data The new IV's. This should be an array of exactly four 32 bit values. On 64-bit architectures, the upper 32 bits of the values will be discarded.

Definition at line 164 of file m_hash.h.


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