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

ParameterDescription
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)

Returns: 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.

leave
KErrArgument If either aN or aE are not positive integers, and releases ownership.
ParameterDescription
aNThe RSA parameter, n (the modulus)
aEThe RSA parameter, e (the encryption exponent)

Returns: A pointer to a new CRSAPublicKey object

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.
ParameterDescription
aNThe RSA parameter, n (the modulus)
aEThe RSA parameter, e (the encryption exponent)

Returns: A pointer to a new CRSAPublicKey object