with_fhe_context: Execute code with automatic cleanup of FHE state

View source: R/serialization.R

with_fhe_contextR Documentation

Execute code with automatic cleanup of FHE state

Description

Clears eval keys and releases contexts on exit (even on error).

Usage

with_fhe_context(expr)

Arguments

expr

Expression to evaluate

Value

Result of expr


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