#include <RSA.h>
Inheritance diagram for CODEX_Ciphers::RSAPublicKey:


Public Member Functions | |
| RSAPublicKey () | |
| Default constructor, for creating an object to be unmarshalled. | |
| RSAPublicKey (BIGNUM *n, BIGNUM *e) | |
| Constructor taking components of the key as BIGNUM%s. | |
| RSAPublicKey (const CODEX_ASN1::BigNumber &n, const CODEX_ASN1::BigNumber &e) | |
| Constructor taking components of the key as BigNumber%s. | |
| RSAPublicKey (const X509 *cert) | |
| Constructor taking an X.509 certificate. | |
| RSAPublicKey (const RSAPublicKey &aKey) | |
| Copy constructor. | |
| virtual | ~RSAPublicKey () |
| Destructor. | |
| void | operator= (const RSAPublicKey &aKey) |
| Assignment operator. | |
| virtual const CODEX_ASN1::BigNumber & | n () const |
| Modulus of the public key. | |
| virtual const CODEX_ASN1::BigNumber & | e () const |
| Encryption exponent. | |
| RSACipherText * | encrypt (const BIGNUM *message) const |
| Encrypt a message. | |
| bool | verifySignature (const RSASignature &signature, const BIGNUM *message) const |
| Verify the signature for a message. | |
| int | marshal (unsigned char **pp) const |
| Serialize the object. | |
| void * | unmarshal (void *bogus, unsigned char **pp, long length) |
| Unserialize the object. | |
| void | toFile (const char *fname) const |
| Writes the public key to a file. | |
| void * | fromFile (const char *fname) |
| Reads the public key from a file. | |
| bool | initialized () const |
Protected Member Functions | |
| BIGNUM * | exponentiate (const BIGNUM *aBN) const |
Protected Attributes | |
| bool | m_initialized |
| Has this object been initialized yet, or is it still blank? | |
Definition at line 91 of file RSA.h.
|
|
Constructor taking an X.509 certificate.
Definition at line 50 of file RSAPublicKey.cc. |
|
|
Encrypt a message.
Definition at line 88 of file RSAPublicKey.cc. Referenced by CODEX_KeyService::DelegateResponseVerifier::handler(), CODEX_Client::Client::readKey(), and CODEX_Server::ServerState::thresholdOperation(). |
|
|
Reads the public key from a file.
Definition at line 234 of file RSAPublicKey.cc. References unmarshal(). |
|
|
|
Writes the public key to a file.
Definition at line 212 of file RSAPublicKey.cc. References marshal(). |
|
||||||||||||
1.4.1