ComputeFHE is a C++ project for arithmetic operations over Fully Homomorphic Encryption over Torus (TFHE) using the OpenFHE library based on algorithms proposed in:
Taşel, F.S., Saran, A.N. Improved arithmetic efficiency in TFHE through gate-level optimizations. J Supercomput 81, 1633 (2025). https://doi.org/10.1007/s11227-025-08107-8
It provides implementations of standard and optimized arithmetic operators and gate logic operations on encrypted data.
Please cite the paper if you use ComputeFHE in your research.
- Homomorphic arithmetic and logic gate implementations
- Optimized variants for faster computation
- Clean CMake-based build system
- C++17 compiler (e.g.,
g++ >= 9orclang >= 10) - CMake >= 3.14
- OpenFHE library (installed on your system)
-
Clone this repository:
git clone https://github.com/fstasel/compute-fhe.git cd compute-fhe -
Make sure you have OpenFHE installed. If not:
git clone https://github.com/openfheorg/openfhe-development.git cd openfhe-development mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local make -j$(nproc) sudo make install
-
Build ComputeFHE:
cd compute-fhe mkdir build && cd build cmake .. make -j$(nproc)
-
Run the program:
./compute-fhe
This project is licensed under the MIT License.