Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <signed.h>
Link against: crypto.lib

Class CAlgorithmIdentifier

class CAlgorithmIdentifier : public CBase;

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.

Derivation

Members

Defined in CAlgorithmIdentifier:

Inherited from CBase:


Construction and destruction


NewL(const CAlgorithmIdentifier &)

IMPORT_C static CAlgorithmIdentifier* NewL(const CAlgorithmIdentifier &aAlgorithmIdentifier);

Description

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

Parameters

const CAlgorithmIdentifier &aAlgorithmIdentifier

The algorithm ID object to be copied.

Return value

CAlgorithmIdentifier *

A pointer to the new algorithm ID object.


NewLC(const CAlgorithmIdentifier &)

IMPORT_C static CAlgorithmIdentifier* NewLC(const CAlgorithmIdentifier &aAlgorithmIdentifier);

Description

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

Parameters

const CAlgorithmIdentifier &aAlgorithmIdentifier

The algorithm ID object to be copied.

Return value

CAlgorithmIdentifier *

A pointer to the new algorithm ID object.


NewL(TAlgorithmId &,const TDesC8 &)

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

Description

Creates a new algorithm ID object.

Parameters

TAlgorithmId &aAlgorithmId

The algorithm ID.

const TDesC8 &aEncodedParams

The encoded parameters.

Return value

CAlgorithmIdentifier *

A pointer to the new algorithm ID object.


NewLC(TAlgorithmId &,const TDesC8 &)

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

Description

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

Parameters

TAlgorithmId &aAlgorithmId

The algorithm ID.

const TDesC8 &aEncodedParams

The encoded parameters.

Return value

CAlgorithmIdentifier *

A pointer to the new algorithm ID object.


~CAlgorithmIdentifier()

IMPORT_C ~CAlgorithmIdentifier();

Description

Destructor.

Frees all resources owned by the object.


CAlgorithmIdentifier()

protected: IMPORT_C CAlgorithmIdentifier();

Description

Default constructor.


CAlgorithmIdentifier(TAlgorithmId &)

protected: IMPORT_C CAlgorithmIdentifier(TAlgorithmId &aAlgorithmId);

Description

Constructor taking the specified parameters.

Parameters

TAlgorithmId &aAlgorithmId

The algorithm ID.


ConstructL(const CAlgorithmIdentifier &)

protected: IMPORT_C virtual void ConstructL(const CAlgorithmIdentifier &aAlgorithmIdentifier);

Description

Second-phase constructor taking an existing algorithm identifier object.

Parameters

const CAlgorithmIdentifier &aAlgorithmIdentifier

The algorithm identifier object.


ConstructL(const TDesC8 &)

protected: IMPORT_C virtual void ConstructL(const TDesC8 &aEncodedParams);

Description

Second-phase constructor taking encoded parameters.

Parameters

const TDesC8 &aEncodedParams

The encoded parameters.

[Top]


Member functions


operator==(const CAlgorithmIdentifier &)const

IMPORT_C TBool operator==(const CAlgorithmIdentifier &aAlgorithmIdentifier) const;

Description

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

Parameters

const CAlgorithmIdentifier &aAlgorithmIdentifier

The algorithm identifier object to be compared.

Return value

TBool

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


Algorithm()const

IMPORT_C TAlgorithmId Algorithm() const;

Description

Gets the algorithm identifier.

Return value

TAlgorithmId

The algorithm identifier.


EncodedParams()const

IMPORT_C TPtrC8 EncodedParams() const;

Description

Gets the encoded parameters for the algorithm identifier.

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

Return value

TPtrC8

The encoded parameters.

[Top]


Member data


iAlgorithmId

protected: TAlgorithmId iAlgorithmId;

Description

The algorithm ID.


iEncodedParams

protected: HBufC8 * iEncodedParams;

Description

The encoded parameters for the algorithm ID.