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

Constructor

Parameters

MKeyPairGenerator * aKeyPairGenerator
TInt aHandle

~CKeyPairGenerator()

IMPORT_C ~CKeyPairGenerator ( )

Destructor

Member Functions Documentation

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

IMPORT_C void GenerateKeyPairL ( TInt aKeySize,
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 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

NewL(MKeyPairGenerator *, TInt)

CKeyPairGenerator * NewL ( MKeyPairGenerator * aKeyPairGenerator,
TInt aHandle
) [static]

Create a CKeyPairGenerator instance from the given MKeyPairGenerator instance

Parameters

MKeyPairGenerator * aKeyPairGenerator The key pair generator plugin instance
TInt aHandle