#include <asymmetrickeys.h>
class CRSAPublicKey : public CRSAParameters |
Protected Attributes | |
---|---|
RInteger | iE |
Public Member Functions | |
---|---|
virtual | ~CRSAPublicKey(void) |
IMPORT_C const TInteger & | E(void) |
IMPORT_C CRSAPublicKey * | NewL(RInteger &, RInteger &) |
IMPORT_C CRSAPublicKey * | NewLC(RInteger &, RInteger &) |
Protected Member Functions | |
---|---|
CRSAPublicKey(RInteger &, RInteger &) | |
CRSAPublicKey(void) |
Inherited Attributes | |
---|---|
CRSAParameters::iN |
Representation of an RSA public key.
An RSA public key is identified by its modulus (n) and its encryption exponent (e).
IMPORT_C | CRSAPublicKey | ( | void | ) | [protected] |
Default constructor
IMPORT_C | ~CRSAPublicKey | ( | void | ) | [virtual] |
Destructor
IMPORT_C const TInteger & | E | ( | void | ) | const |
Gets the RSA parameter, e (the encryption exponent)
IMPORT_C CRSAPublicKey * | NewL | ( | RInteger & | aN, |
RInteger & | aE | |||
) | [static] |
Creates a new CRSAPublicKey object from a specified modulus and encryption exponent.
Parameters | |
---|---|
aN | The RSA parameter, n (the modulus) |
aE | The RSA parameter, e (the encryption exponent) |
Leave Codes | |
---|---|
KErrArgument | If either aN or aE are not positive integers, and releases ownership. |
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 | |
---|---|
aN | The RSA parameter, n (the modulus) |
aE | The RSA parameter, e (the encryption exponent) |
Leave Codes | |
---|---|
KErrArgument | If either aN or aE are not positive integers, and releases ownership. |