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.

    ParameterDescription
    aHashIdThe identity of the hash algorithm

    Returns: 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.

    ParameterDescription
    aHashIdThe identity of the hash algorithm

    Returns: 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.

    ParameterDescription
    aHashIdThe identity of the hash algorithm
    aKeyThe authentication key

    Returns: 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.

    ParameterDescription
    aHashIdThe identity of the hash algorithm
    aKeyThe authentication key

    Returns: A pointer to a CMessageDigest object