CAlgorithmIdentifier Class Reference

#include <signed.h>

Link against: crypto.lib

class CAlgorithmIdentifier : public CBase

Inherits from

  • CAlgorithmIdentifier

    Detailed Description

    Contains an algorithm ID and any encoded parameters required by that algorithm.

    An object of this type creates and owns a heap descriptor to contain the encoded parameters.

    Since
    v6.0

    Member Attribute Documentation

    iAlgorithmId

    TAlgorithmId iAlgorithmId[protected]

    The algorithm ID.

    iEncodedParams

    HBufC8 *iEncodedParams[protected]

    The encoded parameters for the algorithm ID.

    Constructor & Destructor Documentation

    CAlgorithmIdentifier ( )

    IMPORT_CCAlgorithmIdentifier()[protected]

    Default constructor.

    CAlgorithmIdentifier ( TAlgorithmId & )

    IMPORT_CCAlgorithmIdentifier(TAlgorithmId &aAlgorithmId)[protected]

    Constructor taking the specified parameters.

    ParameterDescription
    aAlgorithmIdThe algorithm ID.

    ~CAlgorithmIdentifier ( )

    IMPORT_C~CAlgorithmIdentifier()

    Destructor.

    Frees all resources owned by the object.

    Member Function Documentation

    Algorithm ( )

    IMPORT_C TAlgorithmIdAlgorithm()const

    Gets the algorithm identifier.

    Returns: The algorithm identifier.

    ConstructL ( const CAlgorithmIdentifier & )

    IMPORT_C voidConstructL(const CAlgorithmIdentifier &aAlgorithmIdentifier)[protected, virtual]

    Second-phase constructor taking an existing algorithm identifier object.

    ParameterDescription
    aAlgorithmIdentifierThe algorithm identifier object.

    ConstructL ( const TDesC8 & )

    IMPORT_C voidConstructL(const TDesC8 &aEncodedParams)[protected, virtual]

    Second-phase constructor taking encoded parameters.

    ParameterDescription
    aEncodedParamsThe encoded parameters.

    EncodedParams ( )

    IMPORT_C TPtrC8EncodedParams()const

    Gets the encoded parameters for the algorithm identifier.

    Note that this object owns the heap descriptor that owns the encoded parameters.

    Returns: The encoded parameters.

    NewL ( const CAlgorithmIdentifier & )

    IMPORT_C CAlgorithmIdentifier *NewL(const CAlgorithmIdentifier &aAlgorithmIdentifier)[static]

    Creates a new algorithm ID object copied from an existing object.

    ParameterDescription
    aAlgorithmIdentifierThe algorithm ID object to be copied.

    Returns: A pointer to the new algorithm ID object.

    NewL ( TAlgorithmId &, const TDesC8 & )

    IMPORT_C CAlgorithmIdentifier *NewL(TAlgorithmId &aAlgorithmId,
    const TDesC8 &aEncodedParams
    )[static]

    Creates a new algorithm ID object.

    ParameterDescription
    aAlgorithmIdThe algorithm ID.
    aEncodedParamsThe encoded parameters.

    Returns: A pointer to the new algorithm ID object.

    NewLC ( const CAlgorithmIdentifier & )

    IMPORT_C CAlgorithmIdentifier *NewLC(const CAlgorithmIdentifier &aAlgorithmIdentifier)[static]

    Creates a new algorithm ID object copied from an existing object, and puts a pointer to the new object onto the cleanup stack.

    ParameterDescription
    aAlgorithmIdentifierThe algorithm ID object to be copied.

    Returns: A pointer to the new algorithm ID object.

    NewLC ( TAlgorithmId &, const TDesC8 & )

    IMPORT_C CAlgorithmIdentifier *NewLC(TAlgorithmId &aAlgorithmId,
    const TDesC8 &aEncodedParams
    )[static]

    Creates a new algorithm ID object, and puts a pointer to the new object onto the cleanup stack.

    ParameterDescription
    aAlgorithmIdThe algorithm ID.
    aEncodedParamsThe encoded parameters.

    Returns: A pointer to the new algorithm ID object.

    operator== ( const CAlgorithmIdentifier & )

    IMPORT_C TBooloperator==(const CAlgorithmIdentifier &aAlgorithmIdentifier)const

    Tests whether this algorithm identifier object is equal to the specified algorithm identifier object.

    ParameterDescription
    aAlgorithmIdentifierThe algorithm identifier object to be compared.

    Returns: ETrue, if this algorithm identifier object is equal to the specified algorithm identifier object; EFalse otherwise.