CryptoSpi::CKey Class Reference

class CryptoSpi::CKey : public CBase

The key definition

Inherits from

Constructor & Destructor Documentation

CKey(const TKeyProperty &)

CKey ( const TKeyProperty & aKeyProperty ) [private]

constructor

Parameters

const TKeyProperty & aKeyProperty

~CKey()

IMPORT_C ~CKey ( )

Destructor

Member Functions Documentation

ConstructL(const CCryptoParams &)

void ConstructL ( const CCryptoParams & aKeyParameters ) [private]

2nd Phase Constructor

Parameters

const CCryptoParams & aKeyParameters

GetBigIntL(TUid)

IMPORT_C const TInteger & GetBigIntL ( TUid aUid ) const

Retrieve the Key Parameter according to the UID of the parameter

Parameters

TUid aUid The UID of the key parameter

GetTDesC8L(TUid)

IMPORT_C const TDesC8 & GetTDesC8L ( TUid aUid ) const

Parameters

TUid aUid

GetTIntL(TUid)

IMPORT_C TInt GetTIntL ( TUid aUid ) const

Parameters

TUid aUid

IsPresent(TUid)

IMPORT_C TBool IsPresent ( TUid aUid ) const

Parameters

TUid aUid

KeyParameters()

IMPORT_C const CCryptoParams & KeyParameters ( ) const

Retrieve the key property and key parameter

KeyProperty()

IMPORT_C const TKeyProperty & KeyProperty ( ) const

Retrieve the key property

NewL(const TKeyProperty &, const CCryptoParams &)

IMPORT_C CKey * NewL ( const TKeyProperty & aKeyProperty,
const CCryptoParams & aKeyParameters
) [static]

Creates a new key from a key property and key parameters.

Parameters

const TKeyProperty & aKeyProperty The key property for the new key
const CCryptoParams & aKeyParameters The list of the key parameters

NewL(const CKey &)

IMPORT_C CKey * NewL ( const CKey & aKey ) [static]

Creates a new key from a CKey object.

Parameters

const CKey & aKey the source CKey object.

NewLC(const TKeyProperty &, const CCryptoParams &)

IMPORT_C CKey * NewLC ( const TKeyProperty & aKeyProperty,
const CCryptoParams & aKeyParameters
) [static]

Creates a new key from a key property and key parameters. Leave the Ckey pointer on the cleanup stack.

Parameters

const TKeyProperty & aKeyProperty The key property for the new key
const CCryptoParams & aKeyParameters The list of the key parameters

NewLC(const CKey &)

IMPORT_C CKey * NewLC ( const CKey & aKey ) [static]

Creates a new key from a CKey object. Leave the Ckey pointer on the cleanup stack.

Parameters

const CKey & aKey the source CKey object.

Member Data Documentation

CCryptoParams * iKeyParameters

CCryptoParams * iKeyParameters [private]

The Key Parameters of this object

TKeyProperty iKeyProperty

TKeyProperty iKeyProperty [private]

the key property