#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
CBase
-
Base class for all classes to be instantiated on the heap.
CAlgorithmIdentifier
- Contains an algorithm ID and any encoded parameters required by that algorithm.
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
Return value
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
Return value
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
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
IMPORT_C ~CAlgorithmIdentifier();
Description
Destructor.
Frees all resources owned by the object.
protected: IMPORT_C CAlgorithmIdentifier();
Description
Default constructor.
CAlgorithmIdentifier(TAlgorithmId &)
protected: IMPORT_C CAlgorithmIdentifier(TAlgorithmId &aAlgorithmId);
Description
Constructor taking the specified parameters.
Parameters
ConstructL(const CAlgorithmIdentifier &)
protected: IMPORT_C virtual void ConstructL(const CAlgorithmIdentifier &aAlgorithmIdentifier);
Description
Second-phase constructor taking an existing algorithm identifier object.
Parameters
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.
|
|
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
Return value
TBool
|
ETrue, if this algorithm identifier object is equal to the specified algorithm identifier object; EFalse otherwise.
|
|
IMPORT_C TAlgorithmId Algorithm() const;
Description
Gets the algorithm identifier.
Return value
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.
|
|
protected: TAlgorithmId iAlgorithmId;
Description
The algorithm ID.
protected: HBufC8 * iEncodedParams;
Description
The encoded parameters for the algorithm ID.