serialize_eval_keys: Serialize evaluation keys from the key registry

View source: R/serialization.R

serialize_eval_keysR Documentation

Serialize evaluation keys from the key registry

Description

Writes the registered multiplication, automorphism or summation keys to a file, or, with filename = NULL, returns them serialized in memory. The keys are those under key_tag, or, when cc is given, those of that context.

Usage

serialize_eval_keys(
  filename = NULL,
  type = c("mult", "automorphism", "sum"),
  format = "binary",
  key_tag = "",
  cc = NULL
)

Arguments

filename

Path to the output file, or NULL (default) to serialize in memory.

type

"mult", "automorphism" or "sum".

format

"binary" (default) or "json"

key_tag

Key tag; "" (default) for the keys of every tag.

cc

A CryptoContext, or NULL (default). When given, key_tag is not used.

Value

With a file name, TRUE invisibly. Otherwise a raw vector (format = "binary") or a character string (format = "json").

See Also

deserialize_eval_keys(), deserialize_eval_keys_string()


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.