CMessageDigestCrypto Class Reference

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.

Inherits from

Constructor & Destructor Documentation

~CMessageDigestCrypto()

~CMessageDigestCrypto ( ) [inline, virtual]

Member Functions Documentation

Final(TDes8 &)

void Final ( TDes8 & aDigest ) [pure virtual]

Wrap up the digest and return the result.

Parameters

TDes8 & aDigest a buffer to return the final computed digest value.

Init()

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.

Update(const TDesC8 &)

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

Parameters

const TDesC8 & aMessage describe the segment of octets to be added into the digest (length >= 0).