PALISADE Lattice Crypto Library
1.11.9
A lattice crypto library for software engineers by software engineers.
|
Template for crypto parameters. More...
#include <rlwe.h>
Public Member Functions | |
LPCryptoParametersRLWE () | |
LPCryptoParametersRLWE (const LPCryptoParametersRLWE &rhs) | |
LPCryptoParametersRLWE (shared_ptr< typename Element::Params > params, EncodingParams encodingParams, float distributionParameter, float assuranceMeasure, float securityLevel, usint relinWindow, int depth=1, int maxDepth=2, MODE mode=RLWE) | |
LPCryptoParametersRLWE (shared_ptr< typename Element::Params > params, EncodingParams encodingParams, float distributionParameter, float assuranceMeasure, SecurityLevel stdLevel, usint relinWindow, int depth=1, int maxDepth=2, MODE mode=RLWE) | |
virtual | ~LPCryptoParametersRLWE () |
float | GetDistributionParameter () const |
float | GetAssuranceMeasure () const |
float | GetSecurityLevel () const |
usint | GetRelinWindow () const |
int | GetDepth () const |
size_t | GetMaxDepth () const |
MODE | GetMode () const |
SecurityLevel | GetStdLevel () const |
const Element::DggType & | GetDiscreteGaussianGenerator () const |
void | SetDistributionParameter (float distributionParameter) |
void | SetAssuranceMeasure (float assuranceMeasure) |
void | SetSecurityLevel (float securityLevel) |
void | SetStdLevel (SecurityLevel securityLevel) |
void | SetRelinWindow (usint relinWindow) |
void | SetDepth (int depth) |
void | SetMaxDepth (size_t maxDepth) |
void | SetMode (MODE mode) |
bool | operator== (const LPCryptoParameters< Element > &rhs) const |
void | PrintParameters (std::ostream &os) const |
template<class Archive > | |
void | save (Archive &ar, std::uint32_t const version) const |
template<class Archive > | |
void | load (Archive &ar, std::uint32_t const version) |
std::string | SerializedObjectName () const |
Public Member Functions inherited from lbcrypto::LPCryptoParameters< Element > | |
virtual const PlaintextModulus & | GetPlaintextModulus () const |
virtual const shared_ptr< typename Element::Params > | GetElementParams () const |
virtual const EncodingParams | GetEncodingParams () const |
virtual void | SetPlaintextModulus (const PlaintextModulus &plaintextModulus) |
virtual bool | operator!= (const LPCryptoParameters< Element > &cmp) const |
virtual void | SetElementParams (shared_ptr< typename Element::Params > params) |
virtual void | SetEncodingParams (EncodingParams encodingParams) |
template<class Archive > | |
void | save (Archive &ar, std::uint32_t const version) const |
template<class Archive > | |
void | load (Archive &ar, std::uint32_t const version) |
Additional Inherited Members | |
Static Public Member Functions inherited from lbcrypto::LPCryptoParameters< Element > | |
static uint32_t | SerializedVersion () |
Protected Member Functions inherited from lbcrypto::LPCryptoParameters< Element > | |
LPCryptoParameters (const PlaintextModulus &plaintextModulus) | |
LPCryptoParameters (shared_ptr< typename Element::Params > params, const PlaintextModulus &plaintextModulus) | |
LPCryptoParameters (shared_ptr< typename Element::Params > params, EncodingParams encodingParams) | |
LPCryptoParameters (LPCryptoParameters< Element > *from, shared_ptr< typename Element::Params > newElemParms) | |
Template for crypto parameters.
Element | a ring element. |
|
inline |
Default Constructor
|
inline |
Copy constructor.
|
inline |
Constructor that initializes values.
¶ms | element parameters. |
&encodingParams | encoding-specific parameters |
distributionParameter | noise distribution parameter. |
assuranceMeasure | assurance level. |
securityLevel | security level. |
relinWindow | the size of the relinearization window. |
depth | is the depth of computation circuit supported for these parameters (not used now; for future use). |
maxDepth | the maximum power of secret key for which the relinearization key is generated |
mode | mode for secret polynomial, defaults to RLWE. |
|
inline |
Constructor that initializes values - uses HomomorphicEncryption.org standard security levels
¶ms | element parameters. |
&encodingParams | encoding-specific parameters |
distributionParameter | noise distribution parameter. |
assuranceMeasure | assurance level. |
securityLevel | security level. |
relinWindow | the size of the relinearization window. |
depth | is the depth of computation circuit supported for these parameters (not used now; for future use). |
maxDepth | the maximum power of secret key for which the relinearization key is generated |
mode | mode for secret polynomial, defaults to RLWE. |
|
inlinevirtual |
Destructor
|
inline |
Returns the values of assurance measure alpha
|
inlinevirtual |
Returns the depth of computation circuit supported for these parameters (not used now; for future use).
Reimplemented from lbcrypto::LPCryptoParameters< Element >.
|
inlinevirtual |
Returns reference to Discrete Gaussian Generator
Reimplemented from lbcrypto::LPCryptoParameters< Element >.
|
inline |
Returns the value of standard deviation r for discrete Gaussian distribution
|
inlinevirtual |
Returns the maximum homomorphic multiplication depth before performing relinearization
Reimplemented from lbcrypto::LPCryptoParameters< Element >.
|
inline |
Gets the mode setting: RLWE or OPTIMIZED.
|
inlinevirtual |
Returns the value of relinearization window.
Reimplemented from lbcrypto::LPCryptoParameters< Element >.
|
inline |
Returns the value of root Hermite factor security level /delta.
|
inline |
Gets the standard security level
|
inlinevirtual |
== operator to compare to this instance of LPCryptoParametersRLWE object.
&rhs | LPCryptoParameters to check equality against. |
Implements lbcrypto::LPCryptoParameters< Element >.
|
inline |
Sets the values of assurance measure alpha
assuranceMeasure |
|
inline |
Sets the depth of computation circuit supported for these parameters (not used now; for future use).
depth |
|
inline |
Sets the value of standard deviation r for discrete Gaussian distribution
distributionParameter |
|
inline |
Sets the value of the maximum power of secret key for which the relinearization key is generated
depth |
|
inline |
Configures the mode for generating the secret key polynomial
mode | is RLWE or OPTIMIZED. |
|
inline |
Sets the value of relinearization window
relinWindow |
|
inline |
Sets the value of security level /delta
securityLevel |
|
inline |
Sets the standard security level
standard | security level |