Learn R Programming

openfhe.R (version 1.6.1)

fhe_deserialize_string: Deserialize an OpenFHE object held in memory

Description

The inverse of fhe_serialize() with filename = NULL.

Usage

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

Value

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

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.