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

CODEX_VSS::ShareSet< Combinatoric< NumT, ThreshT > > Class Template Reference

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

#include <Combinatoric.h>

List of all members.

Public Types

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

Public Member Functions

 ShareSet ()
 Default constructor.
 ShareSet (const ShareSet< ShareType > &aOther)
 Copy constructor.
void operator= (const ShareSet< ShareType > &aOther)
 Assignment operator.
const ShareType::ValueType & operator() (unsigned int i) const
 The share for a given index.
void setShare (unsigned int i, const typename ShareType::ValueType &share)
 Set the share at a given index to a particular value.
void addShare (const ShareType &share)
 Add a share to the set.
void recover (CODEX_ASN1::SecureBigNumber &result) const
 Recover the secret from the set of shares.
bool shouldHave (unsigned int shareNum, unsigned int partNum) const
 Test whether a participant in a secret sharing scheme should have a particular share index.


Detailed Description

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

Specialization of ShareSet for combinatoric secret sharing.

Definition at line 469 of file Combinatoric.h.


Member Function Documentation

template<unsigned int NumT, unsigned int ThreshT>
const ShareType::ValueType& CODEX_VSS::ShareSet< Combinatoric< NumT, ThreshT > >::operator() unsigned int  i  )  const [inline]
 

The share for a given index.

Parameters:
i The index of a share.
Returns:
The corresponding share, which is uninitialized if that share is not held locally.
Exceptions:
CODEX_Exceptions::IllegalIndexException if the index is out of range.

Definition at line 497 of file Combinatoric.h.

template<unsigned int NumT, unsigned int ThreshT>
void CODEX_VSS::ShareSet< Combinatoric< NumT, ThreshT > >::recover CODEX_ASN1::SecureBigNumber result  )  const [inline]
 

Recover the secret from the set of shares.

Parameters:
result The recovered secret, uninitialized if not enough shares are present in the set.

Definition at line 527 of file Combinatoric.h.

template<unsigned int NumT, unsigned int ThreshT>
void CODEX_VSS::ShareSet< Combinatoric< NumT, ThreshT > >::setShare unsigned int  i,
const typename ShareType::ValueType &  share
[inline]
 

Set the share at a given index to a particular value.

Parameters:
i The index of a share.
share The value to which the share should be set.
Exceptions:
CODEX_Exceptions::IllegalIndexException if the index is out of range.

Definition at line 510 of file Combinatoric.h.

template<unsigned int NumT, unsigned int ThreshT>
bool CODEX_VSS::ShareSet< Combinatoric< NumT, ThreshT > >::shouldHave unsigned int  shareNum,
unsigned int  partNum
const [inline]
 

Test whether a participant in a secret sharing scheme should have a particular share index.

Parameters:
shareNum The index of a share.
partNum The identifier of a participant.
Returns:
Whether or not the participant should have this share.
Exceptions:
CODEX_Exceptions::IllegalIndexException if either parameter is out of the valid range.

Definition at line 541 of file Combinatoric.h.


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