| BaseRipemd Class |
|
|
|
|
Abstract class
Derived class from: BaseHash
Implements common members for all Ripemd hash algorithms.
The class contains:
Constructors & Destructor
Initializer methods
Class methods
Protected methods
Class Constructors & Destructors
|
|
|
BaseRipemd (); |
| |
|
Creates an object of the base class, sets the default values for common members of all derived hash classes. |
|
|
|
BaseRipemd (BaseCryptoRandomStream* hashStream); [ Inherited from BaseHash ]
|
| |
|
Creates an object of the base class, sets the default values for common members of all derived classes and sets the BaseCryptoRandomStream hashStream object (Message Digest stream) passed as the digest that will be used by the specific hash algorithm.
|
|
|
|
~BaseRipemd (); |
| |
|
Destroys the object and clears all common members. |
|
|
|
virtual void Initialize(void); [ Overridden, BaseHash virtual method defined ]
|
| |
|
It must initialize the hash object to perform a new hash operation.
|
|
|
|
void Finalize(void); [ Overridden, BaseHash virtual method defined ]
|
| |
|
Finalizes the hash computation with all added BaseCryptoRandomStream dataStream objects.
|
|
|
|
virtual unsigned short int GetBitHashLength(void); [ Virtual method ] [ Inherited from BaseHash ]
|
| |
|
Gets the Hash stream length measured in bits that the specific hash algorithm works with.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
virtual unsigned short int GetUCHashLength(void); [ Virtual method ] [ Inherited from BaseHash ]
|
| |
|
Gets the Hash stream length measured in bytes (unsigned chars) that the specific hash algorithm works with.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
virtual unsigned short int GetULHashLength(void); [ Virtual method ] [ Inherited from BaseHash ]
|
| |
|
Gets the Hash stream length measured in 4 bytes (usigned long ints) that the specific hash algorithm works with.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
void SetMessageDigest (BaseCryptoRandomStream* hashStream); [ Inherited from BaseHash ]
|
| |
|
Sets the BaseCryptoRandomStream hashStream object (Message Digest stream) passed as the digest that will be used by the specific hash algorithm.
|
|
|
|
BaseCryptoRandomStream* GetMessageDigest (void); [ Inherited from BaseHash ]
|
| |
|
Gets the BaseCryptoRandomStream hashStream object used by the hash algorithm object. |
|
|
|
virtual Hashes GetType(void); [ Virtual method ] [ Inherited from BaseHash ]
|
| |
|
Gets the hash algorithm type (the algorithm that implements) of the object.
Returns one of the Hashes values.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
|
|
|
void AddMessageLength (unsigned long int length);
|
| |
|
Adds messaage length processed, if it is greater than unsigned long makes use of another usigned long to store overflow. Total length will be used while finalizing the hash operation.
|
|
|
|
virtual void Compress(BaseCryptoRandomStream* hashDigest, unsigned char* dataStream); [ Virtual method ] |
| |
|
Computes the dataStream chunk block of information with the hashDigest.
Is a virtual function that must be defined for each one of the classes derived from this class if you want to create an object of that class.
|
You can check the page Used Symbols for an explanation of the symbols near the information.
|
|
|