fhe_deserialize_string: Deserialize an OpenFHE object held in memory

View source: R/serialization.R

fhe_deserialize_stringR Documentation

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
)

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.


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