read

Engine.read_lossy_bootstrap_key(filename)
Creates a lossy bootstrap key by reading data from a file.
  • Input:
    • filename: str
      • Can be an absolute or relative path.
  • Output:
    • LossyBootstrapKey

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine(for_bootstrap=True)
lossy_bootstrap_key = engine.read_lossy_bootstrap_key(
    "/opt/desilo/lossy_bootstrap_key"
)

Using a relative path

from desilofhe import Engine

engine = Engine(for_bootstrap=True)
lossy_bootstrap_key = engine.read_lossy_bootstrap_key("lossy_bootstrap_key")