|
Sha512 (Sha 512 secure hash algorithm) |
|
|
| Sha512 Class |
|
|
|
|
Derived class from: BaseHash
Implements hash algorithm SHA 512.
The class contains:
Constructors & Destructor
Initializer methods
Class methods
Protected methods
Class Constructors & Destructors
|
|
|
Sha512 (); |
| |
|
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.
|
|
|
|
Sha512 (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 Sha512 hash algorithm.
|
|
|
|
~Sha512 (); |
| |
|
Destroys the object and clears all common members. |
|
|
|
void Initialize(void); [ Overridden, BaseHash virtual method defined ] |
| |
|
Initializes the hash object to perform the following hash operation.
|
|
|
|
void Finalize(void); [ Overridden, BaseHash virtual method defined ]
|
| |
|
Finalizes the hash computation with all added BaseCryptoRandomStream dataStream objects.
|
|
|
|
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 Sha512 objects the value is 512 bits.
|
|
|
|
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 Sha512 objects the value is 64 unsigned chars (1 byte).
|
|
|
|
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 Sha512 objects the value is 16 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. |
|
|
|
Hashes GetType(void); [ Overridden, BaseHash virtual method defined ] |
| |
|
Gets the hash algorithm type (the algorithm that implements) of the object.
Returns the Hashes value SHA_512.
|
|
|
|
unsigned short int GetDataHashUCs(void);
|
| |
|
Gets the number of unsigned chars in the hash block to be hashed
|
|
|
|
void AddMessageLength (unsigned long int length);
|
| |
|
Adds messaage length processed, if it is greater than unsigned long int makes use of another usigned long int to store overflow. Total length will be used while finalizing the hash operation.
|
|
|
|
void Compress (BaseCryptoRandomStream* hashDigest, unsigned char* dataStream); |
| |
|
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.
|
|
|