CMD2 Class Reference
class CMD2 : public CMessageDigest
|
Constructor & Destructor Documentation
CMD2(const CMD2 &)
CMD2
|
(
|
const
CMD2
&
|
aMD2
|
)
|
[private]
|
Member Functions Documentation
Block(const TUint8 *)
void
|
Block
|
(
|
const
TUint8
*
|
aData
|
)
|
[private]
|
BlockSize(void)
IMPORT_C
TInt
|
BlockSize
|
(
|
void
|
|
)
|
[virtual]
|
Gets the internal block size of the message digest.
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()
.
DoFinal(void)
void
|
DoFinal
|
(
|
void
|
|
)
|
[private]
|
DoUpdate(const TUint8 *, TUint)
void
|
DoUpdate
|
(
|
const
TUint8
*
|
aData,
|
|
TUint
|
aLength
|
|
)
|
[private]
|
Final(const TDesC8 &)
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()
.
Parameters
const
TDesC8
& aMessage
|
Data to be included in the hash
|
Final()
IMPORT_C
TPtrC8
|
Final
|
(
|
)
|
[virtual]
|
Gets a
TPtrC8
of the finalised hash of all the previously appended messages and then calls
Reset()
.
Hash(const TDesC8 &)
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
& aMessage
|
Data to be included in the hash.
|
HashSize(void)
IMPORT_C
TInt
|
HashSize
|
(
|
void
|
|
)
|
[virtual]
|
Gets the size of the message digest output.
NewL(void)
IMPORT_C
CMD2
*
|
NewL
|
(
|
void
|
|
)
|
[static]
|
Creates a new MD2 object.
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()
.
Reset(void)
IMPORT_C void
|
Reset
|
(
|
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()
.
RestoreState()
void
|
RestoreState
|
(
|
)
|
[virtual]
|
Restores the internal state of the message digest to a previously stored state.
StoreState()
StoreState()
void
|
StoreState
|
(
|
)
|
[virtual]
|
Stores the internal state of the message digest.
Update(const TDesC8 &)
IMPORT_C void
|
Update
|
(
|
const
TDesC8
&
|
aMessage
|
)
|
[virtual]
|
Adds data to the internal representation of messages to be hashed.
Parameters
const
TDesC8
& aMessage
|
Data to be included in the hash.
|
Member Data Documentation
TUint
iChecksum
TUint
|
iChecksum
|
[private]
|
TUint
iChecksumTemp
TUint
|
iChecksumTemp
|
[private]
|
TBuf8< MD2_HASH > iHashBuf
TUint
iStateTemp
TUint
|
iStateTemp
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.