class CMessageDigestCrypto : public CBase |
Base Message Digest (abstract) class.
All message digest algorithms must be derived from this base class, which defines the IPSEC required API for message digests (used by AH and ESP with authentication implementations).
Because IPSEC needs to run digest for each packet independently, it is important that the implementation can reset the computation by Init() without needing to do any additional allocations.
Public Member Functions | |
---|---|
~CMessageDigestCrypto () | |
void | Final ( TDes8 &) |
void | Init () |
void | Update (const TDesC8 &) |
void | Final | ( | TDes8 & | aDigest | ) | [pure virtual] |
Wrap up the digest and return the result.
TDes8 & aDigest | a buffer to return the final computed digest value. |
void | Init | ( | ) | [pure virtual] |
Set digest into initial state.
IPSEC calls this method to start a new digest computation for each IP packet that needs digest computation.
void | Update | ( | const TDesC8 & | aMessage | ) | [pure virtual] |
Add segment of data to the digest.
The octets in aMessage must be added to the digest value. The length of the aMessage can be anything from 0 or more octets. If the digest algorithm has any inherent block requirements, then this method must handle it (specifically, the digest must work correctly, even if the data is fed to it one byte at time).
const TDesC8 & aMessage | describe the segment of octets to be added into the digest (length >= 0). |
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.