| HashSuite Class |
|
|
|
|
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
|
|
|
HashSuite (); |
| |
|
Creates an object of the class, sets the default values for members.
|
 |
|
None hash algorithm object is created |
|
|
|
|
~HashSuite (); |
| |
|
Destroys the object and clears all members.
|
 |
|
If the RandomTestSuite object contains any instantiated hash algorithm object credated by the suite, the hash algorithm object is deleted.
|
|
|
|
|
void Initialize (void); |
| |
|
Initializes all hash algorithm objects in the suite. |
|
|
|
void Add (BaseCryptoRandomStream* stream); |
| |
|
Adds the BaseCryptoRandomStream stream object to be computed by all hash algorithm objects instantiated in the suite object. |
|
|
|
bool Finalize (void); |
| |
|
Finalizes all hash algorithm objects instantiated in the suite object. |
|
|
|
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. |
|
|
|
void Add (BaseHash* hash); |
| |
|
Adds the pointed BaseHash hash object test to the suite.
|
 |
|
|
|
|
|
|
void Add (Hashes hash); |
| |
|
Creates and adds a hash object to the suite based in the enumerated Hashes hash.
|
 |
|
The random test will use the MathematicalFunctions object instantiated by the suite.
|
|
|
|
|
void AddAll (void); |
| |
|
Instantites and adds all hash algorithms to the suite object.
|
 |
|
|
|
|
|
|
void AddSha1 (void); |
| |
|
Creates and adds a Sha1 hash algorithm object to the suite.
|
|
|
|
|
void AddSha224 (void); |
| |
|
Creates and adds a Sha224 hash algorithm object to the suite.
|
|
|
|
|
void AddSha256 (void); |
| |
|
Creates and adds a Sha256 hash algorithm object to the suite.
|
|
|
|
|
void AddSha384 (void); |
| |
|
Creates and adds a Sha384 hash algorithm object to the suite.
|
|
|
|
|
void AddSha512 (void); |
| |
|
Creates and adds a Sha512 hash algorithm object to the suite.
|
|
|
|
|
void AddRipemd128 (void); |
| |
|
Creates and adds a Ripemd128 hash algorithm object to the suite.
|
|
|
|
|
void AddRipemd160 (void); |
| |
|
Creates and adds a Ripemd160 hash algorithm object to the suite.
|
|
|
|
|
void AddRipemd256 (void); |
| |
|
Creates and adds a Ripemd256 hash algorithm object to the suite.
|
|
|
|
|
void AddRipemd320 (void); |
| |
|
Creates and adds a Ripemd320 hash algorithm object to the suite.
|
|
|
|
|
BaseHash* GetMessageDigest (Hashes hash); |
| |
|
Gets a pointer to a hash algorithm object of the suite based in the Hashes hash algorithm hash.
|
|
|
|
Sha1* GetSha1 (void); |
| |
|
Gets the pointer to the Sha1 hash algorithm object of the suite object. |
|
|
|
Sha224* GetSha224 (void); |
| |
|
Gets the pointer to the Sha224 hash algorithm object of the suite object. |
|
|
|
Sha256* GetSha256 (void); |
| |
|
Gets the pointer to the Sha256 hash algorithm object of the suite object. |
|
|
|
Sha384* GetSha384 (void); |
| |
|
Gets the pointer to the Sha384 hash algorithm object of the suite object. |
|
|
|
Sha512* GetSha512 (void); |
| |
|
Gets the pointer to the Sha512 hash algorithm object of the suite object. |
|
|
|
Ripemd128* GetRipemd128 (void); |
| |
|
Gets the pointer to the Ripemd128 hash algorithm object of the suite object. |
|
|
|
Ripemd160* GetRipemd160 (void); |
| |
|
Gets the pointer to the Ripemd160 hash algorithm object of the suite object. |
|
|
|
Ripemd256* GetRipemd256 (void); |
| |
|
Gets the pointer to the Ripemd256 hash algorithm object of the suite object. |
|
|
|
Ripemd320* GetRipemd320 (void); |
| |
|
Gets the pointer to the Ripemd320 hash algorithm object of the suite object. |
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
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.
|
|
|
|
|
int GetInstantiatedHashes (void); |
| |
|
Gets the number of instantiated hash algorithm objects that contains the suite object. |
|
|
|
bool Exist (Hashes hash); |
| |
|
Indicates if the enumerated Hashes hash exists in the object suite |
|
|
|
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.
|
|
|