| Ripemd256 Class |
|
|
|
|
Derived class from: BaseRipemd128X
Implements Ripemd 256 hash algorithm.
The class contains:
Constructors & Destructor
Initializer methods
Class methods
Protected methods
Prrivate methods
Class Constructors & Destructors
|
|
|
Ripemd256 (); |
| |
|
Creates an object of the base class, sets the default values for common members. Before the object can be used, BaseCryptoRandomStream hashStream must be assigned and the hash must be initialized. |
|
|
|
Ripemd256 (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 object Ripemd256 hash algorithm.
|
|
|
|
~Ripemd256 (); |
| |
|
Destroys the object and clears all common members. |
|
|
|
virtual void Initialize(void); [ Overridden, BaseHash virtual method defined and BaseRipemd member overridden ]
|
| |
|
It must initialize the hash object to perform a new hash operation.
|
|
|
|
unsigned short int GetBitHashLength(void); [ Overridden, BaseHash virtual method defined ]
|
| |
|
Gets the Hash stream length measured in bits that the specific hash algorithm works with, with Ripemd256 objects the value is 256 bits. |
|
|
|
virtual unsigned short int GetUCHashLength(void); [ Overridden, BaseHash virtual method defined ]
|
| |
|
Gets the Hash stream length measured in bytes (unsigned chars) that the specific hash algorithm works with, with Ripemd256 objects the value is 32 unsigned chars (1 byte).
|
|
|
|
virtual unsigned short int GetULHashLength(void); [ Overridden, BaseHash virtual method defined ]
|
| |
|
Gets the Hash stream length measured in 4 bytes (usigned long ints) that the specific hash algorithm works with, with Ripemd256 objects the value is 8 unsigned long ints (4 bytes).
|
|
|
|
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); [ Overridden, BaseHash virtual method defined ]
|
| |
|
Gets the hash algorithm type (the algorithm that implements) of the object.
Returns the Hashes value RIPEMD_256. |
|
|
|
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.
|
|
|
|
void Transform_F0 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the first transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Transform_G1 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the second transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Transform_H2 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the third transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Transform_I3 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the fourth transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Transform_I5 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the fifth transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Transform_H6 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the sixth transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Transform_G7 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the seventh transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Transform_F9 (unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*, unsigned long int*); |
| |
|
Performs the eighth transformation set for Ripemd 128 and Ripemd 256.
|
|
|
|
void Compress(BaseCryptoRandomStream* hashDigest, unsigned char* dataStream); [ Overridden, BaseRipemd128X virtual method defined ] |
| |
|
Computes the dataStream chunk block of information with the hashDigest.
|
You can check the page Used Symbols for an explanation of the symbols near the information.
|
|
|