Tuesday, 07 September 2010

C++ DiceLockSecurity Namespace

Source Code

HOW TO

Sha224 (Sha 224 secure hash algorithm) Print E-mail
Sha224 Class   d-64class-der.png
Get FREE HashDigester
C++ Hash Algorithms
Windows DLL

Derived class from: Sha256


Implements hash algorithm SHA 224.

The class contains:

  Constructors & Destructor
  Initializer methods
  Class methods



Class Constructors & Destructors

d-const.png

  Sha224 ();
    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.

d-const.png

  Sha224 (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 Sha224 hash algorithm.

d-dest.png

  ~Sha224 ();
    Destroys the object and clears all common members. If working hash digest of 256 bits has been automatically created deletes working hash digest of 256 bits.

Class Initializer

d-reset.png

  void Initialize(void); [ Overridden, BaseHash virtual method defined and Sha256 member overridden ]
    Initializes the hash object to perform the following hash operation.



Class Methods

d-exe.png

  void Add(BaseCryptoRandomStream* dataStream); [ Inherited from BaseSha32 and overridden ]
    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 BaseSha32 and overridden ]
    Finalizes the hash computation with all added BaseCryptoRandomStream dataStream objects.

d-get.png

 

  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 Sha224 objects the value is 224 bits.

d-get.png

 

  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 Sha224 objects the value is 28 unsigned chars (1 byte).

d-get.png

 

  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 Sha224 objects the value is 7 unsigned long ints (4 bytes).

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-set.png

  void SetWorkingDigest (BaseCryptoRandomStream* workDigest);
    Sets the BaseCryptoRandomStream workingDigest object to perform the hash computation of Sha256 base class.

d-get.png

  unsigned short int  GetWorkingDigestUCLength (void);
    Gets the working hash digest length for Sha224 hash algorithm object. In the case of Sha224 the working digest length in bytes (unsigned chars)  is 32.

d-get.png

  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_224.


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 !