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,
TInt aHandle
) [private]

Constructor

Parameters

MAsyncKeyPairGenerator * aKeyPairGenerator
TInt aHandle

~CAsyncKeyPairGenerator()

IMPORT_C ~CAsyncKeyPairGenerator ( )

Destructor

Member Functions Documentation

Cancel()

IMPORT_C void Cancel ( )

Cancel the outstanding request

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

IMPORT_C void GenerateKeyPairL ( TInt aKeySize,
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 aKeySize The algorithm-specific metric in number of bits
const CCryptoParams & aKeyParameters The list of algorithm-specific parameters used by the generator to generate the key pair
CKeyPair *& aKeyPair The generated key pair
TRequestStatus & aRequestStatus

NewL(MAsyncKeyPairGenerator *, TInt)

CAsyncKeyPairGenerator * NewL ( MAsyncKeyPairGenerator * aKeyPairGenerator,
TInt aHandle
) [static]

Create a CAsyncKeyPairGenerator instance from the given MAsyncKeyPairGenerator instance

Parameters

MAsyncKeyPairGenerator * aKeyPairGenerator The aync key pair generator plugin instance
TInt aHandle