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

CODEX_Ciphers::VarRSABlindPlainText Class Reference

Serializable representation of a blinded plaintext for the RSA variant. More...

#include <VarRSA.h>

Inheritance diagram for CODEX_Ciphers::VarRSABlindPlainText:

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

Collaboration graph
[legend]
List of all members.

Public Methods

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

 VarRSABlindPlainText (BIGNUM *b1, BIGNUM *b2)
 Constructor taking plaintext as a BIGNUMs.

 VarRSABlindPlainText (const CODEX_ASN1::BigNumber &b1, const CODEX_ASN1::BigNumber &b2)
 Constructor taking plaintext as BigNumbers.

 VarRSABlindPlainText (const VarRSABlindPlainText &aOther)
 Copy constructor.

virtual ~VarRSABlindPlainText ()
 Destructor.

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

const CODEX_ASN1::BigNumberb1 () const
const CODEX_ASN1::BigNumberb2 () const
BIGNUM * unblind (const BIGNUM *b, const CODEX_ASN1::BigNumber &modulus, const HashFunction &hashFunc) const
 Unblind a blind plaintext.

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 a blinded plaintext for the RSA variant.

This is a two-part plaintext, where the first part is r*b and the second H(r) XOR m for a blinding factor b, message m, and hash function H.

Definition at line 178 of file VarRSA.h.


Member Function Documentation

const CODEX_ASN1::BigNumber& CODEX_Ciphers::VarRSABlindPlainText::b1   const [inline]
 

Returns:
first element of plain text. b1 = b*r

Definition at line 215 of file VarRSA.h.

Referenced by VarRSABlindPlainText().

const CODEX_ASN1::BigNumber& CODEX_Ciphers::VarRSABlindPlainText::b2   const [inline]
 

Returns:
second element of plain text. b2 = H(r) XOR m

Definition at line 220 of file VarRSA.h.

Referenced by VarRSABlindPlainText().

BIGNUM * VarRSABlindPlainText::unblind const BIGNUM *    b,
const CODEX_ASN1::BigNumber   modulus,
const HashFunction   hashFunc
const
 

Unblind a blind plaintext.

Parameters:
b  The blinding factor
modulus  The modulus for the group in which ciphertexts live
hashFunc  The hash function
Returns:
A pointer to a new BIGNUM which is the unblinding of the blind plaintext.

Definition at line 33 of file VarRSABlindPlainText.cc.

References CODEX_Ciphers::BIGNUM_xor(), CODEX_ASN1::BigNumber::marshal(), and CODEX_ASN1::BigNumber::value().


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