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 &)

voidConstructL(const CCryptoParams &aKeyParameters)[private]

2nd Phase Constructor

Parameters

const CCryptoParams & aKeyParameters

GetBigIntL(TUid)

IMPORT_C const TInteger &GetBigIntL(TUidaUid)const

Retrieve the Key Parameter according to the UID of the parameter

Parameters

TUid aUidThe UID of the key parameter

GetTDesC8L(TUid)

IMPORT_C const TDesC8 &GetTDesC8L(TUidaUid)const

Parameters

TUid aUid

GetTIntL(TUid)

IMPORT_C TIntGetTIntL(TUidaUid)const

Parameters

TUid aUid

IsPresent(TUid)

IMPORT_C TBoolIsPresent(TUidaUid)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 & aKeyPropertyThe key property for the new key
const CCryptoParams & aKeyParametersThe 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 & aKeythe 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 & aKeyPropertyThe key property for the new key
const CCryptoParams & aKeyParametersThe 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 & aKeythe 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