HelibCkksContext#
- class HelibCkksContext#
An implementation of HeContext using the HElib CKKS backend.
- get_enable_conjugate(self: pyhelayers.HelibCkksContext) bool #
Returns whether conjugate operation is enabled.
- Return type:
bool
- init(*args, **kwargs)#
Overloaded function.
init(self: pyhelayers.HelibCkksContext, m: int, r: int, L: int, c: int = 2, enable_conjugate: bool = True) -> None
Initializes context with given parameters.
init(self: pyhelayers.HelibCkksContext, conf: pyhelayers.HelibConfig) -> None
Initializes context with the given configuration.
- param conf:
User configuration.
- type conf:
Helibconfig
-
class HelibCkksContext : public helayers::HelibContext#
An implementation of HeContext for Helib’s CKKS scheme.
It can be either initialized via parameters, via an HelibConfig, or loaded from a file. It is recommended not to use directly after initialization, but use an HeContext reference instead.
Public Functions
-
HelibCkksContext()#
Constructs an empty object.
-
virtual ~HelibCkksContext()#
-
void init(unsigned long m, unsigned long r, unsigned long L, unsigned long c = 2, bool enableConjugate = true)#
Initializes context with given parameters.
-
virtual void init(const HelibConfig &conf) override#
Initializes context with given configuration.
- Parameters:
conf – [in] user configuration
-
virtual std::shared_ptr<AbstractCiphertext> createAbstractCipher() const override#
Do not use. Should be made private.
-
virtual std::shared_ptr<AbstractPlaintext> createAbstractPlain() const override#
Do not use. Should be made private.
-
virtual std::shared_ptr<AbstractEncoder> getEncoder() const override#
Do not use. Should be made private.
-
inline const helib::EncryptedArrayCx &getEncryptedArray() const#
Returns encrypted array object.
-
inline bool getEnableConjugate() const#
-
inline virtual std::string getSchemeName() const override#
Returns scheme name.
-
void init(const HeConfigRequirement &req) override#
Not yet implemented.
- Throws:
runtime_error – When called.
-
void init(const HelibConfig &conf)
Initialize context with given configuration.
- Parameters:
conf – Configuration details
-
HelibCkksContext()#