CryptoSpi::CAsyncKeyPairGenerator Class Reference

class CryptoSpi::CAsyncKeyPairGenerator : public CryptoSpi::CCryptoBase

Asynchronous Key pair generator, which wraps a asynchronous Key pair generator plugin implementation

Inherits from

Constructor & Destructor Documentation

CAsyncKeyPairGenerator(MAsyncKeyPairGenerator *, TInt)

CAsyncKeyPairGenerator(MAsyncKeyPairGenerator *aKeyPairGenerator,
TIntaHandle
)[private]

Constructor

Parameters

MAsyncKeyPairGenerator * aKeyPairGenerator
TInt aHandle

~CAsyncKeyPairGenerator()

IMPORT_C~CAsyncKeyPairGenerator()

Destructor

Member Functions Documentation

Cancel()

IMPORT_C voidCancel()

Cancel the outstanding request

GenerateKeyPairL(TInt, const CCryptoParams &, CKeyPair *&, TRequestStatus &)

IMPORT_C voidGenerateKeyPairL(TIntaKeySize,
const CCryptoParams &aKeyParameters,
CKeyPair *&aKeyPair,
TRequestStatus &aRequestStatus
)
Generates a key pair
leave
... Any of the crypto error codes defined in cryptospi_errs.h or any of the system-wide error codes.

Parameters

TInt aKeySizeThe algorithm-specific metric in number of bits
const CCryptoParams & aKeyParametersThe list of algorithm-specific parameters used by the generator to generate the key pair
CKeyPair *& aKeyPairThe generated key pair
TRequestStatus & aRequestStatus

NewL(MAsyncKeyPairGenerator *, TInt)

CAsyncKeyPairGenerator *NewL(MAsyncKeyPairGenerator *aKeyPairGenerator,
TIntaHandle
)[static]

Create a CAsyncKeyPairGenerator instance from the given MAsyncKeyPairGenerator instance

Parameters

MAsyncKeyPairGenerator * aKeyPairGeneratorThe aync key pair generator plugin instance
TInt aHandle