CRSAPublicKey Class Reference

#include <asymmetrickeys.h>

class CRSAPublicKey : public CRSAParameters

Inherits from

Detailed Description

Representation of an RSA public key.

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

Member Attribute Documentation

iE

RInteger iE[protected]

The RSA encryption exponent, e

Constructor & Destructor Documentation

CRSAPublicKey ( RInteger &, RInteger & )

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

Constructor

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

CRSAPublicKey ( void )

IMPORT_CCRSAPublicKey(void)[protected]

Default constructor

~CRSAPublicKey ( void )

IMPORT_C~CRSAPublicKey(void)[virtual]

Destructor

Member Function Documentation

E ( void )

IMPORT_C const TInteger &E(void)const

Gets the RSA parameter, e (the encryption exponent)

Return Value
The RSA parameter, e

NewL ( RInteger &, RInteger & )

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

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

Parameters
aNThe RSA parameter, n (the modulus)
aEThe RSA parameter, e (the encryption exponent)
Return Value
A pointer to a new CRSAPublicKey object
Leave Codes
KErrArgumentIf either aN or aE are not positive integers, and releases ownership.

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.

Parameters
aNThe RSA parameter, n (the modulus)
aEThe RSA parameter, e (the encryption exponent)
Return Value
A pointer to a new CRSAPublicKey object
Leave Codes
KErrArgumentIf either aN or aE are not positive integers, and releases ownership.