Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: hash.h
Link against: hash.lib

Class CMessageDigestFactory

class CMessageDigestFactory : public CBase;

Description

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

Derivation

Members

Defined in CMessageDigestFactory:
NewDigestL(), NewDigestLC(), NewHMACL(), NewHMACLC()

Inherited from CBase:
Delete(), Extension_(), operator new()


Member functions


NewDigestL()

static IMPORT_C CMessageDigest *NewDigestL(CMessageDigest::THashId aHashId);

Description

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

Parameters

CMessageDigest::THashId aHashId

The identity of the hash algorithm

Return value

CMessageDigest *

A pointer to a CMessageDigest object


NewDigestLC()

static IMPORT_C CMessageDigest *NewDigestLC(CMessageDigest::THashId aHashId);

Description

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

The returned pointer is put onto the cleanup stack.

Parameters

CMessageDigest::THashId aHashId

The identity of the hash algorithm

Return value

CMessageDigest *

A pointer to a CMessageDigest object


NewHMACL()

static IMPORT_C CMessageDigest *NewHMACL(CMessageDigest::THashId aHashId, const TDesC8 &aKey);

Description

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

Parameters

CMessageDigest::THashId aHashId

The identity of the hash algorithm

const TDesC8 &aKey

The authentication key

Return value

CMessageDigest *

A pointer to a CMessageDigest object


NewHMACLC()

static IMPORT_C CMessageDigest *NewHMACLC(CMessageDigest::THashId aHashId, const TDesC8 &aKey);

Description

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

CMessageDigest::THashId aHashId

The identity of the hash algorithm

const TDesC8 &aKey

The authentication key

Return value

CMessageDigest *

A pointer to a CMessageDigest object