Skip to contents

The inverse of fhe_serialize() with filename = NULL.

Usage

fhe_deserialize_string(
  data,
  type = c("CryptoContext", "PublicKey", "PrivateKey", "Ciphertext", "EvalKey",
    "EvalKeyMap", "EvalKeyVector"),
  format = NULL
)

Arguments

data

A raw vector (binary format) or a character string (JSON), as fhe_serialize() returns.

type

One of "CryptoContext", "PublicKey", "PrivateKey", "Ciphertext", "EvalKey", "EvalKeyMap", or "EvalKeyVector" for a serialized list of EvalKey objects.

format

NULL (default) to take the format from data, or "binary" or "json", which must then agree with data.

Value

The deserialized object; for "EvalKeyVector" a list of EvalKey objects.