CryptoSpi::CKeyPairGenerator Class Reference

class CryptoSpi::CKeyPairGenerator : public CryptoSpi::CCryptoBase

Synchronous Key pair generator, which wraps a synchronous Key pair generator plugin implementation

Inherits from

Constructor & Destructor Documentation

CKeyPairGenerator(MKeyPairGenerator *, TInt)

CKeyPairGenerator(MKeyPairGenerator *aKeyPairGenerator,
TIntaHandle
)[private]

Constructor

Parameters

MKeyPairGenerator * aKeyPairGenerator
TInt aHandle

~CKeyPairGenerator()

IMPORT_C~CKeyPairGenerator()

Destructor

Member Functions Documentation

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

IMPORT_C voidGenerateKeyPairL(TIntaKeySize,
const CCryptoParams &aKeyParameters,
CKeyPair *&aKeyPair
)
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

NewL(MKeyPairGenerator *, TInt)

CKeyPairGenerator *NewL(MKeyPairGenerator *aKeyPairGenerator,
TIntaHandle
)[static]

Create a CKeyPairGenerator instance from the given MKeyPairGenerator instance

Parameters

MKeyPairGenerator * aKeyPairGeneratorThe key pair generator plugin instance
TInt aHandle