Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

CODEX_Ciphers::VarRSABlindCipherText Class Reference

Serializable representation of an RSA variant blinded ciphertext. More...

#include <VarRSA.h>

Inheritance diagram for CODEX_Ciphers::VarRSABlindCipherText:

Inheritance graph
[legend]
Collaboration diagram for CODEX_Ciphers::VarRSABlindCipherText:

Collaboration graph
[legend]
List of all members.

Public Methods

 VarRSABlindCipherText ()
 Default constructor, for creating an object to be unmarshalled.

 VarRSABlindCipherText (BIGNUM *c1, BIGNUM *c2)
 Constructor taking ciphertext as a BIGNUMs.

 VarRSABlindCipherText (const CODEX_ASN1::BigNumber &c1, const CODEX_ASN1::BigNumber &c2)
 Constructor taking ciphertext as BigNumbers.

 VarRSABlindCipherText (const VarRSABlindCipherText &aOther)
 Copy constructor.

virtual ~VarRSABlindCipherText ()
 Destructor.

void operator= (const VarRSABlindCipherText &aOther)
 Assignment operator.

bool operator< (const VarRSABlindCipherText &aOther) const
 Less-than operator.

const CODEX_ASN1::BigNumberc1 () const
const CODEX_ASN1::BigNumberc2 () const
int marshal (unsigned char **pp) const
 Serialize the object.

void * unmarshal (void *bogus, unsigned char **pp, long length)
 Unserialize the object.


Detailed Description

Serializable representation of an RSA variant blinded ciphertext.

This is a two-part ciphertext, with type distinction so that decryption operations know whether they are producing a blinded or regular plaintext, since the operations differ.

Definition at line 114 of file VarRSA.h.


Member Function Documentation

const CODEX_ASN1::BigNumber& CODEX_Ciphers::VarRSABlindCipherText::c1   const [inline]
 

Returns:
first element of cipher text. c1 = (b*r)^e mod N

Definition at line 154 of file VarRSA.h.

Referenced by CODEX_ThresholdCrypto::ThresholdVarRSACrypto< CODEX_VSS::Combinatoric< NumT, ThreshT > >::decrypt(), CODEX_Ciphers::VarRSAPrivateKey::decryptBlind(), CODEX_KeyService::ClientMessageSigner::handler(), CODEX_KeyService::ClientReadCallback::operator()(), and VarRSABlindCipherText().

const CODEX_ASN1::BigNumber& CODEX_Ciphers::VarRSABlindCipherText::c2   const [inline]
 

Returns:
second element of cipher text. c2 = H(r) XOR m

Definition at line 159 of file VarRSA.h.

Referenced by CODEX_Ciphers::VarRSAPrivateKey::decryptBlind(), and VarRSABlindCipherText().


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:05 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18