Template Class EvalKeyImpl
Defined in File evalkey.h
Page Contents
Inheritance Relationships
Base Type
public lbcrypto::Key< Element >
(Template Class Key)
Derived Type
public lbcrypto::EvalKeyRelinImpl< Element >
(Template Class EvalKeyRelinImpl)
Template Parameter Order
class Element
Class Documentation
-
template<class Element>
class lbcrypto::EvalKeyImpl : public lbcrypto::Key<Element> Inheritence diagram for lbcrypto::EvalKeyImpl:
Collaboration diagram for lbcrypto::EvalKeyImpl:
Abstract interface for evaluation/proxy keys.
- Template Parameters
Element – a ring element.
Subclassed by lbcrypto::EvalKeyRelinImpl< Element >
Public Functions
-
inline explicit EvalKeyImpl(CryptoContext<Element> cc = 0)
Basic constructor for setting crypto params
- Parameters
&cryptoParams – is the reference to cryptoParams
-
inline virtual ~EvalKeyImpl()
-
inline virtual void SetAVector(const std::vector<Element> &a)
Setter function to store Relinearization Element Vector A. Throws exception, to be overridden by derived class.
- Parameters
&a – is the Element vector to be copied.
-
inline virtual void SetAVector(std::vector<Element> &&a)
Setter function to store Relinearization Element Vector A. Throws exception, to be overridden by derived class.
- Parameters
&&a – is the Element vector to be moved.
-
inline virtual const std::vector<Element> &GetAVector() const
Getter function to access Relinearization Element Vector A. Throws exception, to be overridden by derived class.
- Returns
Element vector A.
-
inline virtual void SetBVector(const std::vector<Element> &b)
Setter function to store Relinearization Element Vector B. Throws exception, to be overridden by derived class.
- Parameters
&b – is the Element vector to be copied.
-
inline virtual void SetBVector(std::vector<Element> &&b)
Setter function to store Relinearization Element Vector B. Throws exception, to be overridden by derived class.
- Parameters
&&b – is the Element vector to be moved.
-
inline virtual const std::vector<Element> &GetBVector() const
Getter function to access Relinearization Element Vector B. Throws exception, to be overridden by derived class.
- Returns
Element vector B.
-
inline virtual void SetA(const Element &a)
Setter function to store key switch Element. Throws exception, to be overridden by derived class.
- Parameters
&a – is the Element to be copied.
-
inline virtual void SetA(Element &&a)
Setter function to store key switch Element. Throws exception, to be overridden by derived class.
- Parameters
&&a – is the Element to be moved.
-
inline virtual const Element &GetA() const
Getter function to access key switch Element. Throws exception, to be overridden by derived class.
- Returns
Element.
-
inline virtual void SetAinDCRT(const DCRTPoly &a)
Setter function to store key switch Element. Throws exception, to be overridden by derived class.
- Parameters
&a – is the Element to be copied.
-
inline virtual void SetAinDCRT(DCRTPoly &&a)
Setter function to store key switch Element. Throws exception, to be overridden by derived class.
- Parameters
&&a – is the Element to be moved.
-
inline virtual const DCRTPoly &GetAinDCRT() const
Getter function to access key switch Element. Throws exception, to be overridden by derived class.
- Returns
Element.
-
inline virtual void SetBinDCRT(const DCRTPoly &b)
Setter function to store key switch Element. Throws exception, to be overridden by derived class.
- Parameters
&b – is the Element to be copied.
-
inline virtual void SetBinDCRT(DCRTPoly &&b)
Setter function to store key switch Element. Throws exception, to be overridden by derived class.
- Parameters
&&b – is the Element to be moved.
-
inline virtual const DCRTPoly &GetBinDCRT() const
Getter function to access key switch Element. Throws exception, to be overridden by derived class.
- Returns
Element.
-
inline virtual void ClearKeys()
-
inline virtual bool key_compare(const EvalKeyImpl &other) const
-
inline virtual std::string SerializedObjectName() const
Friends
-
inline friend bool operator==(const EvalKeyImpl &a, const EvalKeyImpl &b)
-
inline friend bool operator!=(const EvalKeyImpl &a, EvalKeyImpl &b)