PALISADE Lattice Crypto Library  1.11.9
A lattice crypto library for software engineers by software engineers.
Static Public Member Functions | List of all members
lbcrypto::CryptoContextHelper Class Reference

Static Public Member Functions

static void printAllParmSets (std::ostream &out)
 
static void printParmSet (std::ostream &out, string parmset)
 
static void printAllParmSetNames (std::ostream &out)
 
static void printParmSetNamesByFilter (std::ostream &out, const string &filter)
 
static void printParmSetNamesByFilters (std::ostream &out, std::initializer_list< std::string > filters)
 
static void printParmSetNamesByExcludeFilter (std::ostream &out, const string &filter)
 
static void printParmSetNamesByExcludeFilters (std::ostream &out, std::initializer_list< std::string > filters)
 
static CryptoContext< PolygetNewContext (const string &parmsetname, EncodingParams p=0)
 
static CryptoContext< DCRTPolygetNewDCRTContext (const string &parmsetname, usint numTowers, usint primeBits)
 
template<typename Element >
static CryptoContext< Element > ContextFromAppProfile (const string &scheme, PlaintextModulus ptm, usint nA, usint nM, usint nK, usint maxD, float secFactor)
 

Member Function Documentation

◆ getNewContext()

CryptoContext< Poly > lbcrypto::CryptoContextHelper::getNewContext ( const string &  parmsetname,
EncodingParams  p = 0 
)
static

Generate a CryptoContext for a given parameter set name

Parameters
parmsetnamename of parameter set to use
Returns
newly constructed CryptoContext, or null on failure

◆ getNewDCRTContext()

CryptoContext< DCRTPoly > lbcrypto::CryptoContextHelper::getNewDCRTContext ( const string &  parmsetname,
usint  numTowers,
usint  primeBits 
)
static

Generate a DCRT CryptoContext for a given parameter set name

Parameters
parmsetnamename of parameter set to use
numTowers- how many towers to generate
primeBits- bit width of the primes in the towers
Returns
newly constructed CryptoContext, or null on failure

◆ printAllParmSetNames()

void lbcrypto::CryptoContextHelper::printAllParmSetNames ( std::ostream &  out)
static
Parameters
outstream to write to

◆ printAllParmSets()

void lbcrypto::CryptoContextHelper::printAllParmSets ( std::ostream &  out)
static
Parameters
outstream to write to

◆ printParmSet()

void lbcrypto::CryptoContextHelper::printParmSet ( std::ostream &  out,
string  parmset 
)
static
Parameters
outstream to write to
parmsetparameter set name

◆ printParmSetNamesByExcludeFilter()

void lbcrypto::CryptoContextHelper::printParmSetNamesByExcludeFilter ( std::ostream &  out,
const string &  filter 
)
static

Prints all parameter sets excluding the ones matching the filter

Parameters
outstream to write to
filteris a substring that matches parameter set names

◆ printParmSetNamesByExcludeFilters()

void lbcrypto::CryptoContextHelper::printParmSetNamesByExcludeFilters ( std::ostream &  out,
std::initializer_list< std::string >  filters 
)
static

Prints all parameter sets excluding the ones matching one of the filters

Parameters
outstream to write to
filtersa list of substrings that matches parameter set names

◆ printParmSetNamesByFilter()

void lbcrypto::CryptoContextHelper::printParmSetNamesByFilter ( std::ostream &  out,
const string &  filter 
)
static

Prints all parameter sets matching the filter

Parameters
outstream to write to
filteris a substring that matches parameter set names

◆ printParmSetNamesByFilters()

void lbcrypto::CryptoContextHelper::printParmSetNamesByFilters ( std::ostream &  out,
std::initializer_list< std::string >  filters 
)
static

Prints all parameter sets matching one of the filters

Parameters
outstream to write to
filtersis a list of substrings that matches parameter set names

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