Template Class CryptoParametersBase
Defined in File base-cryptoparameters.h
Page Contents
Inheritance Relationships
Base Type
public lbcrypto::Serializable
(Class Serializable)
Derived Types
public lbcrypto::CryptoParametersRLWE< DCRTPoly >
(Template Class CryptoParametersRLWE)public lbcrypto::CryptoParametersRLWE< Element >
(Template Class CryptoParametersRLWE)
Template Parameter Order
typename Element
Class Documentation
-
template<typename Element>
class lbcrypto::CryptoParametersBase : public lbcrypto::Serializable Inheritence diagram for lbcrypto::CryptoParametersBase:
Collaboration diagram for lbcrypto::CryptoParametersBase:
main implementation class to capture essential cryptoparameters of any LBC system
- Template Parameters
Element – a ring element.
Subclassed by lbcrypto::CryptoParametersRLWE< DCRTPoly >, lbcrypto::CryptoParametersRLWE< Element >
Public Functions
-
inline CryptoParametersBase()
-
inline virtual ~CryptoParametersBase()
-
inline virtual const PlaintextModulus &GetPlaintextModulus() const
Returns the value of plaintext modulus p
- Returns
the plaintext modulus.
-
inline virtual const std::shared_ptr<typename Element::Params> GetElementParams() const
Returns the reference to IL params
- Returns
the ring element parameters.
-
inline virtual const EncodingParams GetEncodingParams() const
Returns the reference to encoding params
- Returns
the encoding parameters.
-
inline virtual void SetPlaintextModulus(const PlaintextModulus &plaintextModulus)
Sets the value of plaintext modulus p
-
inline virtual bool operator==(const CryptoParametersBase<Element> &cmp) const
-
inline virtual bool operator!=(const CryptoParametersBase<Element> &cmp) const
-
inline virtual uint32_t GetMaxRelinSkDeg() const
Returns the value of the maximum power of secret key for which the relinearization key is generated
- Returns
maximum power of secret key
Sets the reference to element params
-
inline virtual void SetEncodingParams(EncodingParams encodingParams)
Sets the reference to encoding params
-
inline virtual std::string SerializedObjectName() const
Public Static Functions
-
static inline uint32_t SerializedVersion()
Protected Functions
-
inline explicit CryptoParametersBase(const PlaintextModulus &plaintextModulus)
-
inline virtual void PrintParameters(std::ostream &out) const
Protected Attributes
-
EncodingParams m_encodingParams
Friends
-
inline friend std::ostream &operator<<(std::ostream &out, const CryptoParametersBase &item)
Overload to allow printing of parameters to an iostream NOTE that the implementation relies on calling the virtual PrintParameters method
- Parameters
out – - the stream to print to
item – - reference to the item to print
- Returns
the stream