CRSAPrivateKeyStandard Class Reference

class CRSAPrivateKeyStandard : public CRSAPrivateKey

The 'classical' representation of a RSA private key.

Such a private key is composed of a modulus (n) and a decryption exponent (d).

Inherits from

Constructor & Destructor Documentation

CRSAPrivateKeyStandard(RInteger &, RInteger &)

IMPORT_C CRSAPrivateKeyStandard ( RInteger & aN,
RInteger & aD
) [protected]

Constructor

Parameters

RInteger & aN The RSA parameter, n (the modulus)
RInteger & aD The RSA parameter, d (the decryption exponent)

CRSAPrivateKeyStandard(const CRSAPrivateKeyStandard &)

CRSAPrivateKeyStandard ( const CRSAPrivateKeyStandard & ) [private]

Parameters

const CRSAPrivateKeyStandard &

~CRSAPrivateKeyStandard(void)

IMPORT_C ~CRSAPrivateKeyStandard ( void ) [virtual]

Destructor

Parameters

void

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

D(void)

IMPORT_C const TInteger & D ( void ) const

Gets the RSA parameter, d (the decryption exponent)

Parameters

void

NewL(RInteger &, RInteger &)

IMPORT_C CRSAPrivateKeyStandard * NewL ( RInteger & aN,
RInteger & aD
) [static]

Creates a new CRSAPrivateKeyStandard object from a specified modulus and decryption exponent.

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

Parameters

RInteger & aN The RSA parameter, n (the modulus)
RInteger & aD The RSA parameter, d (the decryption exponent)

NewLC(RInteger &, RInteger &)

IMPORT_C CRSAPrivateKeyStandard * NewLC ( RInteger & aN,
RInteger & aD
) [static]

Creates a new CRSAPrivateKeyStandard object from a specified modulus and decryption exponent.

The returned pointer is put onto the cleanup stack.

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

Parameters

RInteger & aN The RSA parameter, n (the modulus)
RInteger & aD The RSA parameter, d (the decryption exponent)

operator=(const CRSAPrivateKeyStandard &)

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

Parameters

const CRSAPrivateKeyStandard &

Member Data Documentation

RInteger iD

RInteger iD [protected]

The RSA decryption exponent, d