Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

Specialization of ThresholdRSACrypto for combinatoric secret sharing. More...

#include <CombinatoricThresholdRSA.h>

Collaboration diagram for CODEX_ThresholdCrypto::ThresholdRSACrypto< 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.

Public Member Functions

 ThresholdRSACrypto (const CODEX_ASN1::BigNumber &modulus)
 Constructor.
void sign (const ShareType &shares, const BIGNUM *message, ShareType &partials) const
 Generate partial signatures.
void decrypt (const ShareType &shares, const CODEX_Ciphers::RSACipherText &ciphertext, ShareType &partials) const
 Generate partial decryptions.
BIGNUM * threshold (const SetType &partials) const
 Perform a threshold operation from shares.

Detailed Description

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

Specialization of ThresholdRSACrypto for combinatoric secret sharing.

Definition at line 32 of file CombinatoricThresholdRSA.h.


Member Function Documentation

template<unsigned int NumT, unsigned int ThreshT>
BIGNUM* CODEX_ThresholdCrypto::ThresholdRSACrypto< CODEX_VSS::Combinatoric< NumT, ThreshT > >::threshold const SetType partials  )  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.
Returns:
A threshold RSA result, which should then be verified, or 0 if not enough shares were provided.

Definition at line 92 of file CombinatoricThresholdRSA.h.


The documentation for this class was generated from the following file:
Generated on Fri May 6 17:42:52 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1