#include <RSAPlaintextPK.h>
Inheritance diagram for CODEX_Ciphers::RSAPlaintextPK:


Public Types | |
|
typedef CODEX_ASN1::Array< CODEX_ASN1::BigNumber > | ArrayType |
| Shorthand for the arrays of proof values. | |
Public Member Functions | |
| RSAPlaintextPK () | |
| Default constructor, for creating an object to be unmarshalled. | |
| RSAPlaintextPK (const CODEX_ASN1::SecureBigNumber &plaintext, const RSAPublicKey &publicKey, const CODEX_ASN1::Base &id, const HashFunction &hashFunc) | |
| RSAPlaintextPK (const RSAPlaintextPK &aPPK) | |
| Copy constructor. | |
| virtual | ~RSAPlaintextPK () |
| Virtual destructor. | |
| void | operator= (const RSAPlaintextPK &aPPK) |
| Assignment operator. | |
| bool | verify (const RSACipherText &ciphertext, const RSAPublicKey &publicKey, const CODEX_ASN1::Base &id, const HashFunction &hashFunc) const |
| Verify a proof. | |
| int | marshal (unsigned char **pp) const |
| This function creates a serialized representation of the object, which is returned through the argument pp. | |
| void * | unmarshal (void *bogus, unsigned char **pp, long length) |
| This function takes a serialized representation of the object and recreates the object representation. | |
| bool | initialized () const |
Protected Attributes | |
| bool | m_initialized |
| Has this object been initialized yet, or is it still blank? | |
This uses the identity proof of Ohta and Okamoto, which is similar to the Guillou-Quisquater identify proof (an extension of Fiat-Shamir).
Definition at line 37 of file RSAPlaintextPK.h.
|
||||||||||||||||||||
|
Definition at line 30 of file RSAPlaintextPK.cc. References CODEX_ASN1::Array< T >::append(), CODEX_ASN1::BigNumber::marshal(), CODEX_ASN1::Array< T >::marshal(), and CODEX_ASN1::Array< T >::size(). |
|
|
|
This function creates a serialized representation of the object, which is returned through the argument pp. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 340 of file RSAPlaintextPK.cc. References CODEX_ASN1::Array< T >::marshal(). Referenced by CODEX_Client::WriteKeyMsg::marshal(), and CODEX_Client::ReadKeyMsg::marshal(). |
|
||||||||||||||||
|
This function takes a serialized representation of the object and recreates the object representation. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 355 of file RSAPlaintextPK.cc. References CODEX_ASN1::Array< T >::unmarshal(). Referenced by CODEX_Client::WriteKeyMsg::unmarshal(), and CODEX_Client::ReadKeyMsg::unmarshal(). |
1.4.1