CryptoSpi::MKeyPairGenerator Class Reference

class CryptoSpi::MKeyPairGenerator : public CryptoSpi::MPlugin

The Key Pair Generator definition. Intended to allow plug-ins to implement extensible Key Pair Generator functionality, and to work with all known existing Key pair Generator algorithms

Inherits from

Member Functions Documentation

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

voidGenerateKeyPairL(TIntaKeySize,
const CCryptoParams &aKeyParameters,
CKeyPair *&aKeyPair
)[pure virtual]
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 as a 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