CRSAPublicKey Class Reference

class CRSAPublicKey : public CRSAParameters

Representation of an RSA public key.

An RSA public key is identified by its modulus (n) and its encryption exponent (e).

Inherits from

Constructor & Destructor Documentation

CRSAPublicKey(RInteger &, RInteger &)

IMPORT_CCRSAPublicKey(RInteger &aN,
RInteger &aE
)[protected]

Constructor

Parameters

RInteger & aNThe RSA parameter, n (the modulus)
RInteger & aEThe RSA parameter, e (the encryption exponent)

CRSAPublicKey(void)

IMPORT_CCRSAPublicKey(void)[protected]

Default constructor

Parameters

void

CRSAPublicKey(const CRSAPublicKey &)

CRSAPublicKey(const CRSAPublicKey &)[private]

Parameters

const CRSAPublicKey &

~CRSAPublicKey(void)

IMPORT_C~CRSAPublicKey(void)[virtual]

Destructor

Parameters

void

Member Functions Documentation

ConstructL()

voidConstructL()[private]

E(void)

IMPORT_C const TInteger &E(void)const

Gets the RSA parameter, e (the encryption exponent)

Parameters

void

NewL(RInteger &, RInteger &)

IMPORT_C CRSAPublicKey *NewL(RInteger &aN,
RInteger &aE
)[static]

Creates a new CRSAPublicKey object from a specified modulus and encryption exponent.

leave
KErrArgument If either aN or aE are not positive integers, and releases ownership.

Parameters

RInteger & aNThe RSA parameter, n (the modulus)
RInteger & aEThe RSA parameter, e (the encryption exponent)

NewLC(RInteger &, RInteger &)

IMPORT_C CRSAPublicKey *NewLC(RInteger &aN,
RInteger &aE
)[static]

Creates a new CRSAPublicKey object from a specified modulus and encryption exponent.

The returned pointer is put onto the cleanup stack.

leave
KErrArgument If either aN or aE are not positive integers, and releases ownership.

Parameters

RInteger & aNThe RSA parameter, n (the modulus)
RInteger & aEThe RSA parameter, e (the encryption exponent)

operator=(const CRSAPublicKey &)

CRSAPublicKey &operator=(const CRSAPublicKey &)[private]

Parameters

const CRSAPublicKey &

Member Data Documentation

RInteger iE

RInteger iE[protected]

The RSA encryption exponent, e