CRSAPrivateKeyStandard Class Reference

#include <asymmetrickeys.h>

class CRSAPrivateKeyStandard : public CRSAPrivateKey

Inherits from

Detailed Description

The 'classical' representation of a RSA private key.

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

Member Attribute Documentation

iD

RInteger iD[protected]

The RSA decryption exponent, d

Constructor & Destructor Documentation

CRSAPrivateKeyStandard ( RInteger &, RInteger & )

IMPORT_CCRSAPrivateKeyStandard(RInteger &aN,
RInteger &aD
)[protected]

Constructor

Parameters
aNThe RSA parameter, n (the modulus)
aDThe RSA parameter, d (the decryption exponent)

~CRSAPrivateKeyStandard ( void )

IMPORT_C~CRSAPrivateKeyStandard(void)[virtual]

Destructor

Member Function Documentation

D ( void )

IMPORT_C const TInteger &D(void)const

Gets the RSA parameter, d (the decryption exponent)

Return Value
The RSA parameter, d

NewL ( RInteger &, RInteger & )

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

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

Parameters
aNThe RSA parameter, n (the modulus)
aDThe RSA parameter, d (the decryption exponent)
Return Value
A pointer to a new CRSAPrivateKeyStandard object
Leave Codes
KErrArgumentIf either aN or aD are not positive integers, and releases ownership.

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.

Parameters
aNThe RSA parameter, n (the modulus)
aDThe RSA parameter, d (the decryption exponent)
Return Value
A pointer to a new CRSAPrivateKeyStandard object
Leave Codes
KErrArgumentIf either aN or aD are not positive integers, and releases ownership.