Friday, 10 September 2010

C++ DiceLockSecurity Namespace

Source Code

HOW TO

BaseRipemd128X Print E-mail
BaseRipemd128X Class   d-64class-abst.png
Get FREE HashDigester
C++ Hash Algorithms
Windows DLL

Abstract class

Derived class from: BaseRipemd


Implements common members for Ripemd 128 and Ripemd 256 hash algorithms.

The class contains:

  Constructors & Destructor
  Initializer methods
  Class methods
  Protected methods



Class Constructors & Destructors

d-const.png

  BaseRipemd128X ();
    Creates an object of the base class, sets the default values for common members of all derived hash classes.

d-const.png

  BaseRipemd128X (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.

d-dest.png

  ~BaseRipemd128X ();
    Destroys the object and clears all common members.

Class Initializer

d-reset.png

  virtual void Initialize(void); [ Inherited from BaseRipemd ]
    It must initialize the hash object to perform a new hash operation.



Class Methods

d-exe.png

  void Add(BaseCryptoRandomStream* dataStream); [ Inherited from BaseRipemd ]
    Adds the BaseCryptoRandomStream dataStream object to hash and hashes it with all previous added BaseCryptoRandomStream dataStream objects.

d-exe.png

  void Finalize(void); [ Inherited from BaseRipemd ]
    Finalizes the hash computation with all added BaseCryptoRandomStream dataStream objects.

d-abstract.png

 

  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.   

d-abstract.png

 

  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.   

d-abstract.png

 

  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.   

d-set.png

  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.

d-get.png

  BaseCryptoRandomStream* GetMessageDigest (void); [ Inherited from BaseHash ]
    Gets the BaseCryptoRandomStream hashStream object used by the hash algorithm object.

d-abstract.png

  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. 

 
 

Protected methods

d-exe.png

  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.

d-abstract.png

  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. 

d-exe.png

  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.

d-exe.png

  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.

d-exe.png

  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.

d-exe.png

  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.

d-exe.png

  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.

d-exe.png

  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.

d-exe.png

  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.

d-exe.png

  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.

You can check the page Used Symbols for an explanation of the symbols near the information.

 

Please, let us know the usefulness of the information, it will allow us to be able to improve the support.

Was the information useful?

Vote
 
 



Close Me  
Get FREE Random Number Test Windows DLL !
Get FREE Hash Algorithms Windows DLL !