HEaaN
Crypto Lab's great homomorphic encryption library
Public Member Functions | Private Attributes | List of all members
HEaaN::CollectiveKeyGenData Class Reference

A class to describe data being transfered between parties on the process of generating public keys from secret keys provided by multiple parties. More...

#include <CollectiveKeyGenData.hpp>

Public Member Functions

 CollectiveKeyGenData (const CollectiveKeyGenConfig &config)
 Create a container for data to be transacted during the process of collective key generation. More...
 
const CollectiveKeyGenConfiggetConfig () const
 Get configuration describing which key to generate. More...
 
void save (std::ostream &stream) const
 Save the data into a stream. More...
 
void load (std::istream &stream)
 Load the data from a stream. More...
 
void emplacePoly (const Context &context, bool is_extended, u64 num_poly=1)
 Allocate polynomials at the back of the data. More...
 
u64 getSize () const
 Get number of polynomials. More...
 
std::vector< Polynomial >::const_iterator getPolyIter () const
 Get the iterator to iterate through polynomials in CollectiveKeyGenData. More...
 
std::vector< Polynomial >::iterator getPolyIter ()
 

Private Attributes

Pointer< CollectiveKeyGenDataImpl > impl_
 

Detailed Description

A class to describe data being transfered between parties on the process of generating public keys from secret keys provided by multiple parties.

Constructor & Destructor Documentation

◆ CollectiveKeyGenData()

HEaaN::CollectiveKeyGenData::CollectiveKeyGenData ( const CollectiveKeyGenConfig config)

Create a container for data to be transacted during the process of collective key generation.

Parameters
[in]configCollectiveKeyGenConfig object describing which key to generate

Member Function Documentation

◆ emplacePoly()

void HEaaN::CollectiveKeyGenData::emplacePoly ( const Context context,
bool  is_extended,
u64  num_poly = 1 
)

Allocate polynomials at the back of the data.

This API is for manipulation of its content inside CollectiveKeyGenerator.

◆ getConfig()

const CollectiveKeyGenConfig& HEaaN::CollectiveKeyGenData::getConfig ( ) const

Get configuration describing which key to generate.

◆ getPolyIter() [1/2]

std::vector<Polynomial>::iterator HEaaN::CollectiveKeyGenData::getPolyIter ( )

◆ getPolyIter() [2/2]

std::vector<Polynomial>::const_iterator HEaaN::CollectiveKeyGenData::getPolyIter ( ) const

Get the iterator to iterate through polynomials in CollectiveKeyGenData.

This API is for manipulation of its content inside CollectiveKeyGenerator.

◆ getSize()

u64 HEaaN::CollectiveKeyGenData::getSize ( ) const

Get number of polynomials.

This API is for manipulation of its content inside CollectiveKeyGenerator.

◆ load()

void HEaaN::CollectiveKeyGenData::load ( std::istream &  stream)

Load the data from a stream.

◆ save()

void HEaaN::CollectiveKeyGenData::save ( std::ostream &  stream) const

Save the data into a stream.

Member Data Documentation

◆ impl_

Pointer<CollectiveKeyGenDataImpl> HEaaN::CollectiveKeyGenData::impl_
private

The documentation for this class was generated from the following file: