OpenFheContext#

class OpenFheContext#

An abstract class for all OpenFHE context classes.

clear_all_contexts() None#

Clears all global OpenFHE context objects from memory.

clear_keys(self: pyhelayers.OpenFheContext) None#

Clears the multiplication and rotation keys from memory. In OpenFHE, the context object is global, and public keys are not cleared unless explicitly asked for.