CMD2 Class Reference

class CMD2 : public CMessageDigest

An MD2 message digest

Inherits from

Constructor & Destructor Documentation

CMD2(void)

CMD2(void)[private]

Parameters

void

CMD2(const CMD2 &)

CMD2(const CMD2 &aMD2)[private]

Parameters

const CMD2 & aMD2

~CMD2(void)

IMPORT_C~CMD2(void)

Destructor

Parameters

void

Member Functions Documentation

Block(const TUint8 *)

voidBlock(const TUint8 *aData)[private]

Parameters

const TUint8 * aData

BlockSize(void)

IMPORT_C TIntBlockSize(void)[virtual]

Gets the internal block size of the message digest.

Parameters

void

CopyL(void)

IMPORT_C CMessageDigest *CopyL(void)[virtual]

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

Parameters

void

DoFinal(void)

voidDoFinal(void)[private]

Parameters

void

DoUpdate(const TUint8 *, TUint)

voidDoUpdate(const TUint8 *aData,
TUintaLength
)[private]

Parameters

const TUint8 * aData
TUint aLength

Final(const TDesC8 &)

IMPORT_C TPtrC8Final(const TDesC8 &aMessage)[virtual]

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

Since
v8.0

Parameters

const TDesC8 & aMessageData to be included in the hash

Final()

IMPORT_C TPtrC8Final()[virtual]

Gets a TPtrC8 of the finalised hash of all the previously appended messages and then calls Reset().

Since
v8.0

Hash(const TDesC8 &)

IMPORT_C TPtrC8Hash(const TDesC8 &aMessage)[virtual]

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.

Parameters

const TDesC8 & aMessageData to be included in the hash.

HashSize(void)

IMPORT_C TIntHashSize(void)[virtual]

Gets the size of the message digest output.

Parameters

void

NewL(void)

IMPORT_C CMD2 *NewL(void)[static]

Creates a new MD2 object.

Parameters

void

ReplicateL(void)

IMPORT_C CMessageDigest *ReplicateL(void)[virtual]

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

Parameters

void

Reset(void)

IMPORT_C voidReset(void)[virtual]

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

Parameters

void

RestoreState()

voidRestoreState()[virtual]

Restores the internal state of the message digest to a previously stored state.

StoreState()

StoreState()

voidStoreState()[virtual]

Stores the internal state of the message digest.

Update(const TDesC8 &)

IMPORT_C voidUpdate(const TDesC8 &aMessage)[virtual]

Adds data to the internal representation of messages to be hashed.

Since
v8.0

Parameters

const TDesC8 & aMessageData to be included in the hash.

Member Data Documentation

TUint iChecksum

TUint iChecksum[private]

TUint iChecksumTemp

TUint iChecksumTemp[private]

TUint8 iData

TUint8 iData[private]

TUint8 iDataTemp

TUint8 iDataTemp[private]

TBuf8< MD2_HASH > iHash

TBuf8< MD2_HASH >iHash[private]

TBuf8< MD2_HASH > iHashBuf

TBuf8< MD2_HASH >iHashBuf[private]

TInt iNum

TInt iNum[private]

TUint iState

TUint iState[private]

TUint iStateTemp

TUint iStateTemp[private]