|
|
|
|
Location:
hash.h
Link against: hash.lib
class CMessageDigest : public CBase;
Base class for message digests.
CBase - Base class for all classes to be instantiated on the heap
CMessageDigest - Base class for message digests
Defined in CMessageDigest:
BlockSize(), CMessageDigest(), CMessageDigest(), CopyL(), EMD2, EMD5, ESHA1, Final(), Final(), HMAC, Hash(), HashSize(), ReplicateL(), Reset(), RestoreState(), StoreState(), THashId, Update(), ~CMessageDigest()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
protected: IMPORT_C CMessageDigest(const CMessageDigest &aMD);
Copy constructor
|
virtual IMPORT_C CMessageDigest *ReplicateL(void)=0;
Creates a brand new reset CMessageDigest object containing no state information from the current object.
To make a copy of a message digest with its internal state intact, see CopyL().
|
virtual IMPORT_C TPtrC8 Hash(const TDesC8 &aMessage)=0;
Adds aMessage to the internal representation of data to be hashed, then returns a TPtrC8 of the finalised hash of all the previously appended messages.
|
|
virtual IMPORT_C CMessageDigest *CopyL(void)=0;
Creates a new CMessageDigest object with the exact same state as the current object.
This function copies all internal state of the message digest. To create a new CMessageDigest object without the state of
the current object, see ReplicateL().
|
virtual IMPORT_C TInt BlockSize(void)=0;
Gets the internal block size of the message digest.
|
virtual IMPORT_C TInt HashSize(void)=0;
Gets the size of the message digest output.
|
virtual IMPORT_C void Reset(void)=0;
Resets the internal state of the message digest.
A reset hash object loses all internal state representing the hashed data. A reset message digest is suitable to begin a new,
distinct hash of different data. Any previously returned TPtrC8 from a call to Final() remains valid until any subsequent call to Update() or Final().
virtual IMPORT_C void Update(const TDesC8 &aMessage)=0;
Adds data to the internal representation of messages to be hashed.
|
virtual IMPORT_C TPtrC8 Final(const TDesC8 &aMessage)=0;
Adds aMessage to the internal representation of data to be hashed, returns a TPtrC8 of the finalised hash of all the previously appended messages, and calls Reset().
|
|
virtual IMPORT_C TPtrC8 Final(void)=0;
Gets a TPtrC8 of the finalised hash of all the previously appended messages and then calls Reset().
|
virtual void RestoreState()=0;
Restores the internal state of the message digest to a previously stored state.
THashId
Enumeration to identify hash functions (aka message-digest algorithms).
|