openfhe.R: R Interface to the 'OpenFHE' Fully Homomorphic Encryption Library

Provides an R interface to 'OpenFHE', the open-source C++ library for fully homomorphic encryption (Al Badawi and others, 2022) <https://eprint.iacr.org/2022/915>, which allows computation directly on encrypted data without access to the secret key. Supports the Brakerski-Fan-Vercauteren (BFV, 2012) <https://eprint.iacr.org/2012/144>, Brakerski-Gentry-Vaikuntanathan (BGV, 2014) <doi:10.1145/2633600>, and Cheon-Kim-Kim-Song (CKKS, 2017) <https://eprint.iacr.org/2016/421> schemes for arithmetic on encrypted numbers, together with the Ducas-Micciancio (FHEW, 2015) <https://eprint.iacr.org/2014/816> and Chillotti-Gama-Georgieva-Izabachene (TFHE, 2020) <https://eprint.iacr.org/2018/421> schemes for evaluating arbitrary functions on encrypted bits.

Version: 1.5.1
Depends: R (≥ 4.3.0)
Imports: S7, cli, methods
LinkingTo: cpp11 (≥ 0.4.2)
Suggests: tinytest, knitr, rmarkdown
Published: 2026-08-21
DOI: 10.32614/CRAN.package.openfhe.R (may not be active yet)
Author: Balasubramanian Narasimhan ORCID iD [aut, cre, cph], New Jersey Institute of Technology [cph] (OpenFHE C++ library, inst/openfhe/src), Duality Technologies, Inc. [ctb, cph] (OpenFHE C++ library, inst/openfhe/src), Samuel Neves [ctb, cph] (BLAKE2 reference implementation, inst/openfhe/src/core), Jean-Philippe Aumasson [ctb, cph] (BLAKE2X reference implementation, inst/openfhe/src/core), Randolph Voorhies [ctb, cph] (cereal serialization library, inst/openfhe/cereal), Shane Grant [ctb, cph] (cereal serialization library, inst/openfhe/cereal), Juan Pedro Bolivar Puente [ctb, cph] (cereal std::optional and std::variant support), THL A29 Limited, a Tencent company [cph] (RapidJSON, bundled in inst/openfhe/cereal), Milo Yip [ctb, cph] (RapidJSON, bundled in inst/openfhe/cereal), Alexander Chemeris [ctb, cph] (msinttypes, bundled in inst/openfhe/cereal), Marcin Kalicinski [ctb, cph] (RapidXml, bundled in inst/openfhe/cereal), Rene Nyffenegger [ctb, cph] (base64 encoder/decoder, bundled in inst/openfhe/cereal)
Maintainer: Balasubramanian Narasimhan <naras at stanford.edu>
BugReports: https://github.com/openfheorg/openfhe.R/issues
License: BSD_2_clause + file LICENSE
Copyright: file inst/COPYRIGHTS
openfhe.R copyright details
URL: https://openfheorg.github.io/openfhe.R/, https://github.com/openfheorg/openfhe.R
NeedsCompilation: yes
SystemRequirements: cmake (>= 3.16), GNU make, C++17
Citation: openfhe.R citation info
Materials: README, NEWS
CRAN checks: openfhe.R results

Documentation:

Reference manual: openfhe.R.html , openfhe.R.pdf
Vignettes: BinFHE: Boolean Circuits and Arbitrary Functions on Encrypted Bits (source, R code)
CKKS Bootstrapping: Refreshing Deep Circuits (source, R code)
Introduction to openfhe.R: Fully Homomorphic Encryption in R (source, R code)

Downloads:

Package source: openfhe.R_1.5.1.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): openfhe.R_1.5.1.tgz, r-oldrel (arm64): openfhe.R_1.5.1.tgz, r-release (x86_64): openfhe.R_1.5.1.tgz, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=openfhe.R to link to this page.