HEaaN
Crypto Lab's great homomorphic encryption library
|
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 CollectiveKeyGenConfig & | getConfig () 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_ |
A class to describe data being transfered between parties on the process of generating public keys from secret keys provided by multiple parties.
HEaaN::CollectiveKeyGenData::CollectiveKeyGenData | ( | const CollectiveKeyGenConfig & | config | ) |
Create a container for data to be transacted during the process of collective key generation.
[in] | config | CollectiveKeyGenConfig object describing which key to generate |
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.
const CollectiveKeyGenConfig& HEaaN::CollectiveKeyGenData::getConfig | ( | ) | const |
Get configuration describing which key to generate.
std::vector<Polynomial>::iterator HEaaN::CollectiveKeyGenData::getPolyIter | ( | ) |
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.
u64 HEaaN::CollectiveKeyGenData::getSize | ( | ) | const |
Get number of polynomials.
This API is for manipulation of its content inside CollectiveKeyGenerator.
void HEaaN::CollectiveKeyGenData::load | ( | std::istream & | stream | ) |
Load the data from a stream.
void HEaaN::CollectiveKeyGenData::save | ( | std::ostream & | stream | ) | const |
Save the data into a stream.
|
private |