Location:
hash.h
Link against: hash.lib
class CHMAC : public CMessageDigest;
An HMAC (Hashed Message Authentication Code)
CBase
- Base class for all classes to be instantiated on the heap
CMessageDigest
- Base class for message digests
CHMAC
- An HMAC (Hashed Message Authentication Code)
Defined in CHMAC
:
BlockSize()
, CopyL()
, Final()
, Final()
, Hash()
, HashSize()
, NewL()
, ReplicateL()
, Reset()
, RestoreState()
, StoreState()
, Update()
, ~CHMAC()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
Inherited from CMessageDigest
:
EMD2
,
EMD5
,
ESHA1
,
HMAC
,
THashId
static IMPORT_C CHMAC *NewL(const TDesC8 &aKey, CMessageDigest *aDigest);
Creates a new HMAC object from a specified type of message digest and authentication key.
|
|
virtual IMPORT_C CMessageDigest *ReplicateL(void);
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);
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);
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);
Gets the internal block size of the message digest.
|
virtual IMPORT_C TInt HashSize(void);
Gets the size of the message digest output.
|
virtual IMPORT_C void Reset(void);
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);
Adds data to the internal representation of messages to be hashed.
|
virtual IMPORT_C TPtrC8 Final(const TDesC8 &aMessage);
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();
Gets a TPtrC8
of the finalised hash of all the previously appended messages and then calls Reset()
.
|
virtual void RestoreState();
Restores the internal state of the message digest to a previously stored state.
virtual void StoreState();
Stores the internal state of the message digest.