HeaanContext#

class HeaanContext#

An implementation of HeContext using the HEaaN CKKS backend.

get_parameter_preset_str(self: pyhelayers.HeaanContext) str#

Returns a string with the name of the HEaaN Parameter Preset of this HeaanContext object

init(self: pyhelayers.HeaanContext, req: pyhelayers.HeConfigRequirement) None#

Initializes this HeaanContext according the given requirement.

Parameters:

req – an HeConfigRequirement object, indicating the required configuration parameters (e.g. securityLevel, numSlots).

Raises:

RuntimeError – if it is not possible to fulfill the given requirement.

save_public_keys_to_dir(self: pyhelayers.HeaanContext, arg0: str) None#

Saves the public keys of this HeaanContext to the given directory

Parameters:

dir – The path of the directory to save to.

save_secret_key_to_dir(self: pyhelayers.HeaanContext, arg0: str) None#

Loads the secret keys of this HeaanContext from the given directory

Parameters:

dir – The path of the directory to load from.