#include <SubshareLabel.h>
Inheritance diagram for CODEX_VSS::SubshareLabel< _ShareLabel >:


Public Types | |
| typedef _ShareLabel | ShareLabel |
| Export the type of share label. | |
| typedef ShareLabel::VType | VType |
| Convenient short name for the verification reconstruction class. | |
| typedef ShareLabel::ShareType | ShareType |
| Convenient short name. | |
| typedef ShareLabel::OneWay | OneWay |
| Convenient short name. | |
Public Member Functions | |
| SubshareLabel () | |
| Default constructor. | |
| SubshareLabel (const ShareLabel &label, int id, const ShareSet< ShareType > &shareSet, const OneWay &func) | |
| Constructor taking a share set and one-way function. | |
| SubshareLabel (const ShareLabel &label, int id, const typename VType::ValueType vc[NumShares]) | |
| Constructor taking a set of verification shares. | |
| SubshareLabel (const SubshareLabel< _ShareLabel > &aOther) | |
| Copy constructor. | |
| virtual | ~SubshareLabel () |
| Virtual destructor. | |
| void | operator= (const SubshareLabel< _ShareLabel > &aOther) |
| Assignment operator. | |
| int | cmp (const SubshareLabel< _ShareLabel > &aOther) const |
| Generic comparator method. | |
| bool | operator< (const SubshareLabel< _ShareLabel > &aOther) const |
| Less-than comparator. | |
| bool | operator> (const SubshareLabel< _ShareLabel > &aOther) const |
| Greater-than comparator. | |
| bool | operator== (const SubshareLabel< _ShareLabel > &aOther) const |
| Equality comparator. | |
| bool | operator!= (const SubshareLabel< _ShareLabel > &aOther) const |
| Inequality comparator. | |
| bool | operator<= (const SubshareLabel< _ShareLabel > &aOther) const |
| At-most (<=) comparator (equivalent to !>). | |
| bool | operator>= (const SubshareLabel< _ShareLabel > &aOther) const |
| At-least (>=) comparator (equivalent to !<). | |
| const ShareLabel & | label () const |
| The label of the sharing of which this is a subsharing. | |
| const CODEX_ASN1::Integer & | id () const |
| The origin identifier for the corresponding subsharing. | |
| const VType::ValueType * | vc () const |
| The validity checks for the corresponding subsharing. | |
| const VType::ValueType & | vc (unsigned int i) const |
| A particular validity check for the subsharing. | |
| bool | verify (const OneWay &func) const |
| Check the consistency of the verification data. | |
| bool | check (const ShareType &share, const OneWay &func) const |
| Test a subshare against its validity information. | |
| virtual int | marshal (unsigned char **pp) const |
| This function creates a serialized representation of the object, which is returned through the argument pp. | |
| virtual void * | unmarshal (void *bogus, unsigned char **pp, long length) |
| This function takes a serialized representation of the object and recreates the object representation. | |
| bool | initialized () const |
Static Public Attributes | |
| static const unsigned int | NumShares = ShareLabel::NumShares |
| Number of shares. | |
Protected Attributes | |
| bool | m_initialized |
| Has this object been initialized yet, or is it still blank? | |
This includes version and origin information as well as the public verification information. Because the verification data is included in the label, this is a natural place to test its validity, making the label both an indicator of a specific version and the proof that it corresponds to a valid sharing. The template parameters uniquely determine the type of sharing and the verification scheme, and these are then used to obtain the appropriate verification reconstruction class.
Definition at line 41 of file SubshareLabel.h.
|
|||||
|
Convenient short name for the verification reconstruction class. Explicit specialization of the template determines the precise behavior of VRecon. Definition at line 52 of file SubshareLabel.h. |
|
||||||||||||||||
|
Test a subshare against its validity information. This should be specialized for the type of share and function.
Definition at line 255 of file SubshareLabel.h. Referenced by CODEX_APSS::MessageVerifier::handler(). |
|
||||||||||
|
Generic comparator method. The ordering is arbitrary, but deterministic. Since it's only used for sorting and finding purposes, this does not really matter.
a and b is a.cmp(b)
Definition at line 149 of file SubshareLabel.h. Referenced by CODEX_VSS::SubshareLabel< LabelType >::operator!=(), CODEX_VSS::SubshareLabel< LabelType >::operator<(), CODEX_VSS::SubshareLabel< LabelType >::operator<=(), CODEX_VSS::SubshareLabel< LabelType >::operator==(), CODEX_VSS::SubshareLabel< LabelType >::operator>(), and CODEX_VSS::SubshareLabel< LabelType >::operator>=(). |
|
|
||||||||||
|
This function creates a serialized representation of the object, which is returned through the argument pp. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 261 of file SubshareLabel.h. Referenced by CODEX_APSS::RecoverMsg::marshal(), CODEX_APSS::RecoveredMsg::marshal(), CODEX_APSS::EstablishMsg::marshal(), CODEX_APSS::EstablishedMsg::marshal(), and CODEX_APSS::ComputeMsg::marshal(). |
|
||||||||||||||||||||
|
This function takes a serialized representation of the object and recreates the object representation. This must be overridden by the concrete derived class.
Implements CODEX_ASN1::Base. Definition at line 290 of file SubshareLabel.h. Referenced by CODEX_APSS::RecoverMsg::unmarshal(), CODEX_APSS::RecoveredMsg::unmarshal(), CODEX_APSS::EstablishMsg::unmarshal(), and CODEX_APSS::EstablishedMsg::unmarshal(). |
|
||||||||||
|
Check the consistency of the verification data.
Definition at line 239 of file SubshareLabel.h. Referenced by CODEX_APSS::MessageVerifier::handler(). |
1.4.1