ComputeFHE 1.0
General-Purpose Privacy-Preserving Computation Library for TFHE
Loading...
Searching...
No Matches
Enumerations | Functions
CFHETypes.h File Reference

Defines core enumerations and helper functions for ComputeFHE configuration. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  computefhe::CryptoContextParam {
  CCPARAM_STD128 , CCPARAM_STD128_3 , CCPARAM_STD128_LMKCDEY , CCPARAM_STD128_3_LMKCDEY ,
  CCPARAM_STD192 , CCPARAM_STD192_3 , CCPARAM_STD192_LMKCDEY , CCPARAM_STD192_3_LMKCDEY ,
  CCPARAM_STD256 , CCPARAM_STD256_3 , CCPARAM_STD256_LMKCDEY , CCPARAM_STD256_3_LMKCDEY ,
  CCPARAM_TOY
}
 Supported cryptographic context parameters for OpenFHE. More...
 
enum  computefhe::ALUType { ALU_STANDARD , ALU_OPTIMIZED }
 Specifies the logic gate implementation strategy. More...
 

Functions

const charcomputefhe::ToString (CryptoContextParam v)
 Converts a CryptoContextParam value to a human-readable string.
 
const charcomputefhe::ToString (ALUType v)
 Converts an ALUType value to a human-readable string.
 

Detailed Description

Defines core enumerations and helper functions for ComputeFHE configuration.

Enumeration Type Documentation

◆ ALUType

Specifies the logic gate implementation strategy.

  • ALU_STANDARD: Uses basic FHE gates for logic operations.
  • ALU_OPTIMIZED: Uses specialized multi-input gates (like MAJ or XOR3) to reduce the number of bootstrapping operations.

◆ CryptoContextParam

Supported cryptographic context parameters for OpenFHE.

These values correspond to specific security levels and bootstrapping configurations in OpenFHE.

  • GINX: Entries without 'LMKCDEY' use the GINX bootstrapping method (Gama-Izabachène-Nguyen-Xie).
  • LMKCDEY: Refers to the bootstrapping scheme proposed by Lee-Micciancio-Kim-Choi-Deryabin-Eom-Yoo.
  • 3-input logic: Parameters ending in '_3' enable 3-input gate optimizations.

Function Documentation

◆ ToString() [1/2]

const char * computefhe::ToString ( ALUType  v)
inline

Converts an ALUType value to a human-readable string.

Parameters
vThe ALU type enum.
Returns
A string representation ("STANDARD" or "OPTIMIZED").

◆ ToString() [2/2]

const char * computefhe::ToString ( CryptoContextParam  v)
inline

Converts a CryptoContextParam value to a human-readable string.

Parameters
vThe cryptographic context parameter enum.
Returns
A string representation of the parameter set name.