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 *&)

void GenerateKeyPairL ( TInt aKeySize,
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 aKeySize The algorithm-specific metric as a 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