Friday, 10 September 2010

C++ DiceLockSecurity Namespace

Source Code

HOW TO

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

Class


Implements the suite class to compute different hash algorithms of BaseCryptoRandomStream objects.

The class contains:

  Constructors & Destructor
  Initializer methods
  Class methods




Class Constructors & Destructors

d-const.png

  HashSuite ();
   
Creates an object of the class, sets the default values for members.

d-note.png   None hash algorithm object is created

d-dest.png

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

d-note.png   If the RandomTestSuite object contains any instantiated hash algorithm object credated by the suite, the hash algorithm object is deleted.









Class Cleaners

d-reset.png

  void Initialize (void);
    Initializes all hash algorithm objects in the suite.

Class Methods

d-set.png

  void Add (BaseCryptoRandomStream* stream);
    Adds the BaseCryptoRandomStream stream object to be computed by all hash algorithm objects instantiated in the suite object.

d-exe.png

  bool Finalize (void);
    Finalizes all hash algorithm objects instantiated in the suite object.

d-exe.png

  bool Hash (BaseCryptoRandomStream* stream);
    Initializes all hash algorithm objects instantiated in the suite object, adds the BaseCryptoRandomStream stream to all hash algorithm objects instantiated in the suite object, and finalizes all them.

d-set.png

  void Add (BaseHash* hash);
   
Adds the pointed BaseHash hash object test to the suite.

d-note.png    

d-set.png

  void Add (Hashes hash);
   
Creates and adds a hash object to the suite based in the enumerated Hashes hash.

d-note.png   The random test will use the MathematicalFunctions object instantiated by the suite.

d-set.png

  void AddAll (void);
   
Instantites and adds all hash algorithms to the suite object.

   

d-set.png

  void AddSha1 (void);
   
Creates and adds a Sha1 hash algorithm object to the suite.

d-set.png

  void AddSha224 (void);
   
Creates and adds a Sha224 hash algorithm object to the suite.

d-set.png

  void AddSha256 (void);
   
Creates and adds a Sha256 hash algorithm object to the suite.

d-set.png

  void AddSha384 (void);
   
Creates and adds a Sha384 hash algorithm object to the suite.

d-set.png

  void AddSha512 (void);
   
Creates and adds a Sha512 hash algorithm object to the suite.

d-set.png

  void AddRipemd128 (void);
   
Creates and adds a Ripemd128 hash algorithm object to the suite.

d-set.png

  void AddRipemd160 (void);
   
Creates and adds a Ripemd160 hash algorithm object to the suite.

d-set.png

  void AddRipemd256 (void);
   
Creates and adds a Ripemd256 hash algorithm object to the suite.

d-set.png

  void AddRipemd320 (void);
   
Creates and adds a Ripemd320 hash algorithm object to the suite.

d-get.png

  BaseHash* GetMessageDigest (Hashes hash);
    Gets a pointer to a hash algorithm object of the suite based in the Hashes hash algorithm hash.

d-get.png

  Sha1* GetSha1 (void);
    Gets the pointer to the Sha1 hash algorithm object of the suite object.

d-get.png

  Sha224* GetSha224 (void);
    Gets the pointer to the Sha224 hash algorithm object of the suite object.

d-get.png

  Sha256* GetSha256 (void);
    Gets the pointer to the Sha256 hash algorithm object of the suite object.

d-get.png

  Sha384* GetSha384 (void);
    Gets the pointer to the Sha384 hash algorithm object of the suite object.

d-get.png

  Sha512* GetSha512 (void);
    Gets the pointer to the Sha512 hash algorithm object of the suite object.

d-get.png

  Ripemd128* GetRipemd128 (void);
    Gets the pointer to the Ripemd128 hash algorithm object of the suite object.

d-get.png

  Ripemd160* GetRipemd160 (void);
    Gets the pointer to the Ripemd160 hash algorithm object of the suite object.

d-get.png

  Ripemd256* GetRipemd256 (void);
    Gets the pointer to the Ripemd256 hash algorithm object of the suite object.

d-get.png

  Ripemd320* GetRipemd320 (void);
    Gets the pointer to the Ripemd320 hash algorithm object of the suite object.

d-substr.png

  void Remove (BaseHash* hash);
   
Removes the pointed BaseHash random test test from the suite.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void Remove (Hashes hash);
   
Removes the hash algorithm object of the suite based in the Hashes enumerated hash algorithm hash.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.


d-substr.png

  void RemoveAll (void);
   
Removes all instantiated hash algorithms from the suite.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveSha1 (void);
   
Removes the Sha1 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveSha224 (void);
   
Removes the Sha224 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveSha256 (void);
   
Removes the Sha256 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveSha384 (void);
   
Removes the Sha384 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveSha512 (void);
   
Removes the Sha512 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveRipemd128 (void);
   
Removes the Ripemd128 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveRipemd160 (void);
   
Removes the Ripemd160 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveRipemd256 (void);
   
Removes the Ripemd256 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-substr.png

  void RemoveRipemd320 (void);
   
Removes the Ripemd320 hash algorithm object from the suite object.

  If the hash algorithm object has been instantiated by the suite, it is deleted the hash algorithm object. If the hash algorithm object has been provided to the suite, the hash algorithm is removed from the suite, but it is not deleted.

d-get.png

  int GetInstantiatedHashes (void);
    Gets the number of instantiated hash algorithm objects that contains the suite object.

d-get.png

  bool Exist (Hashes hash);
    Indicates if the enumerated Hashes hash exists in the object suite

d-get.png

  Hashes GetFirstHash (void);
    Gets the first Hashes in the HashSuite object.

d-get.png

  Hashes GetMaximumNumberOfHashes (void);
    Gets the number of hash algorithm objects that can be used in the HashSuite object.






 


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 !