CMessageDigestFactory Class Reference

#include <hash.h>

Link against: hash.lib

class CMessageDigestFactory : public CBase

Inherits from

  • CMessageDigestFactory

Detailed Description

Factory to create a CMessageDigest derived object according to the identity of the hash algorithm.

Member Function Documentation

NewDigestL ( CMessageDigest::THashId )

IMPORT_C CMessageDigest *NewDigestL(CMessageDigest::THashIdaHashId)[static]

Creates a CMessageDigest derived object according to the specified type of hash algorithm.

Parameters
aHashIdThe identity of the hash algorithm
Return Value
A pointer to a CMessageDigest object

NewDigestLC ( CMessageDigest::THashId )

IMPORT_C CMessageDigest *NewDigestLC(CMessageDigest::THashIdaHashId)[static]

Creates a CMessageDigest derived object according to the specified type of hash algorithm.

The returned pointer is put onto the cleanup stack.

Parameters
aHashIdThe identity of the hash algorithm
Return Value
A pointer to a CMessageDigest object

NewHMACL ( CMessageDigest::THashId, const TDesC8 & )

IMPORT_C CMessageDigest *NewHMACL(CMessageDigest::THashIdaHashId,
const TDesC8 &aKey
)[static]

Creates a CMessageDigest derived object according to the specified type of hash algorithm and authentication key.

Parameters
aHashIdThe identity of the hash algorithm
aKeyThe authentication key
Return Value
A pointer to a CMessageDigest object

NewHMACLC ( CMessageDigest::THashId, const TDesC8 & )

IMPORT_C CMessageDigest *NewHMACLC(CMessageDigest::THashIdaHashId,
const TDesC8 &aKey
)[static]

Creates a CMessageDigest derived object according to the specified type of hash algorithm and authentication key.

The returned pointer is put onto the cleanup stack.

Parameters
aHashIdThe identity of the hash algorithm
aKeyThe authentication key
Return Value
A pointer to a CMessageDigest object