KeyGen
module key_manager
key_managerclass KeyGenerator
KeyGeneratorclass KeyGenerator()Key Generator with the given parameters.
PARAMETERS
key_path(str): The path where keys will be stored.dim_list(list, optional): List of dimensions for the context. Defaults to powers of 2 from 32 to 4096.preset(str, optional): The parameter preset to use for the context. Defaults to "ip".seal_info(SealInfo, optional): The seal information for the keys. Defaults to "SealMode.NONE".eval_mode(str, optional): The evaluation mode for the context. Defaults to "RMP".metadata_encryption(bool, optional): Whether to enable metadata encryption. Defaults to None.
EXAMPLES
>>> keygen = KeyGenerator("./keys")
>>> keygen.generate_keys()generate_keys()
generate_keys()def generate_keys()Generate all keys including encryption, evaluation, and secret keys.
ARGUMENTS
None: None
RETURNS
The KeyGenerator instance with generated keys.:
Last updated

