#include <VarRSA.h>
Inheritance diagram for CODEX_Ciphers::VarRSAPublicKey:


Public Member Functions | |
| VarRSAPublicKey (const RSAPublicKey &aKey) | |
| Constructor taking a reference to an RSAPublicKey. | |
| virtual | ~VarRSAPublicKey () |
| Destructor. | |
| const CODEX_ASN1::BigNumber & | n () const |
| Modulus of the public key. | |
| const CODEX_ASN1::BigNumber & | e () const |
| Encryption exponent. | |
| VarRSACipherText * | encrypt (const BIGNUM *message, const HashFunction &hashFunc, BIGNUM *r=0) const |
| Encrypt a message. | |
| bool | verifySignature (const VarRSASignature &signature, const BIGNUM *message) const |
| Verify the signature for a message. | |
| 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 252 of file VarRSA.h.
|
|
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(). |
|
||||||||||||||||
|
Encrypt a message.
Definition at line 34 of file VarRSAPublicKey.cc. References CODEX_Ciphers::BIGNUM_xor(), CODEX_ASN1::BigNumber::marshal(), and n(). Referenced by CODEX_Client::Client::writeKey(). |
|
|
Reads the public key from a file.
Definition at line 234 of file RSAPublicKey.cc. References CODEX_Ciphers::RSAPublicKey::unmarshal(). |
|
|
|
Writes the public key to a file.
Definition at line 212 of file RSAPublicKey.cc. References CODEX_Ciphers::RSAPublicKey::marshal(). |
|
||||||||||||
|
Verify the signature for a message.
Definition at line 94 of file RSAPublicKey.cc. Referenced by CODEX_Client::Client::createKey(), CODEX_Client::Client::getServiceKey(), CODEX_APSS::MessageVerifier::handler(), CODEX_KeyService::ClientMessageVerifier::handler(), CODEX_KeyService::VerifyWriteCallback::operator()(), CODEX_KeyService::SignWriteCallback::operator()(), CODEX_KeyService::SignReadCallback::operator()(), CODEX_KeyService::SignCreateCallback::operator()(), CODEX_KeyService::ClientWriteCallback::operator()(), CODEX_KeyService::ClientReadCallback::operator()(), CODEX_KeyService::ClientCreateCallback::operator()(), CODEX_Client::Client::readKey(), verifySignature(), and CODEX_Client::Client::writeKey(). |
|
||||||||||||
|
Verify the signature for a message.
Definition at line 303 of file VarRSA.h. References CODEX_Ciphers::RSAPublicKey::verifySignature(). |
1.4.1