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

CODEX_ThresholdCrypto::ThresholdElGamalCrypto< CODEX_VSS::Combinatoric< NumT, ThreshT > > Class Template Reference

Specialization of ThresholdElGamalCrypto for combinatoric SS. More...

#include <CombinatoricThresholdElGamal.h>

Collaboration diagram for CODEX_ThresholdCrypto::ThresholdElGamalCrypto< CODEX_VSS::Combinatoric< NumT, ThreshT > >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef CODEX_VSS::Combinatoric<
NumT, ThreshT > 
ShareType
 Export the type of the sharing.

typedef CODEX_VSS::ShareSet<
ShareType
SetType
 Export the type of the share set.

typedef CODEX_Ciphers::ElGamalCipherText CipherTextType
 Export the type of the ciphertext.


Public Methods

 ThresholdElGamalCrypto (const CODEX_ASN1::BigNumber &modulus)
 Constructor.

void decrypt (const ShareType &shares, const CipherTextType &ciphertext, ShareType &partials) const
 Generate partial decryptions.

BIGNUM * thresholdDecrypt (const SetType &partials, const CipherTextType &ciphertext) const
 Perform a threshold operation from shares.


Detailed Description

template<unsigned int NumT, unsigned int ThreshT>
class CODEX_ThresholdCrypto::ThresholdElGamalCrypto< CODEX_VSS::Combinatoric< NumT, ThreshT > >

Specialization of ThresholdElGamalCrypto for combinatoric SS.

Definition at line 32 of file CombinatoricThresholdElGamal.h.


Member Function Documentation

template<unsigned int NumT, unsigned int ThreshT>
BIGNUM* CODEX_ThresholdCrypto::ThresholdElGamalCrypto< CODEX_VSS::Combinatoric< NumT, ThreshT > >::thresholdDecrypt const SetType   partials,
const CipherTextType   ciphertext
const [inline]
 

Perform a threshold operation from shares.

This is not simply the recover function for ShareType, since recover is additive, while the threshold operation is multiplicative.

Parameters:
partials  The shares that form partial results of the threshold operation.
ciphertext  The ciphertext being decrypted, needed because the partial results only relate to half of the ciphertext.
Returns:
A threshold ElGamal result, or 0 if not enough shares were provided.

Definition at line 81 of file CombinatoricThresholdElGamal.h.

References CODEX_Ciphers::ElGamalCipherText::c2(), and CODEX_ASN1::BigNumber::value().


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