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

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

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

leave
KErrArgument If either aN or aD are not positive integers, and releases ownership.
ParameterDescription
aNThe RSA parameter, n (the modulus)
aDThe RSA parameter, d (the decryption exponent)

Returns: A pointer to a new CRSAPrivateKeyStandard object

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.
ParameterDescription
aNThe RSA parameter, n (the modulus)
aDThe RSA parameter, d (the decryption exponent)

Returns: A pointer to a new CRSAPrivateKeyStandard object