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


Public Member Functions | |
| VarRSAPrivateKey (const RSAPrivateKey &aKey) | |
| Constructor taking a reference to an RSAPrivateKey. | |
| virtual | ~VarRSAPrivateKey () |
| Destructor. | |
| const CODEX_ASN1::SecureBigNumber & | p () const |
| One prime factor of the public modulus. | |
| const CODEX_ASN1::SecureBigNumber & | q () const |
| One prime factor of the public modulus. | |
| const CODEX_ASN1::SecureBigNumber & | d () const |
| The private decryption exponent. | |
| const CODEX_ASN1::SecureBigNumber & | n () const |
| The public modulus. | |
| const CODEX_ASN1::SecureBigNumber & | phi () const |
| Euler totient function of n. | |
| BIGNUM * | decrypt (const VarRSACipherText &cipherText, const HashFunction &hashFunc) const |
| Decrypt a message. | |
| VarRSABlindPlainText * | decryptBlind (const VarRSABlindCipherText &cipherText) const |
| Decrypt a blinded message. | |
| VarRSASignature * | sign (const BIGNUM *message) const |
| Sign a message. | |
| BIGNUM * | decrypt (const RSACipherText &cipherText) const |
| Decrypt 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 private key to a file. | |
| void * | fromFile (const char *fname) |
| Reads the private key from a file. | |
| void | fromPEMFile (const char *fname, const char *phrase=0) |
| Reads the private key from a PEM-format 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 316 of file VarRSA.h.
|
|
Decrypt a message.
Definition at line 235 of file RSAPrivateKey.cc. |
|
||||||||||||
|
Decrypt a message.
Definition at line 42 of file VarRSAPrivateKey.cc. References CODEX_Ciphers::BIGNUM_xor(), CODEX_ASN1::BigNumber::marshal(), and n(). |
|
|
Decrypt a blinded message.
Definition at line 115 of file VarRSAPrivateKey.cc. |
|
|
Reads the private key from a file.
Definition at line 376 of file RSAPrivateKey.cc. References CODEX_Ciphers::RSAPrivateKey::p(), and CODEX_Ciphers::RSAPrivateKey::unmarshal(). |
|
||||||||||||
|
Reads the private key from a PEM-format file.
Definition at line 405 of file RSAPrivateKey.cc. |
|
|
|
Sign a message.
Reimplemented from CODEX_Ciphers::RSAPrivateKey. Definition at line 380 of file VarRSA.h. References CODEX_Ciphers::RSAPrivateKey::sign(). |
|
|
Writes the private key to a file.
Definition at line 353 of file RSAPrivateKey.cc. References CODEX_Ciphers::RSAPrivateKey::marshal(), and CODEX_Ciphers::RSAPrivateKey::p(). |
1.4.1