SoK: FHE-Friendly Symmetric Ciphers and Transciphering

Chao Niu, Benqiang Wei, Zhicong Huang, Zhaomin Yang, Cheng Hong, Meiqin Wang, Tao Wei

TL;DR

This paper provides a comprehensive survey of Fully Homomorphic Encryption (FHE)-friendly symmetric ciphers and transciphering techniques. It aims to guide users in selecting the optimal combination for their specific applications by analyzing security, efficiency, and compatibility, and presents extensive experimental benchmarks.

What Problem Does This Paper Address?

Fully Homomorphic Encryption (FHE) allows computations on encrypted data, promising privacy-preserving applications. However, FHE faces two major hurdles: high computational cost and significant ciphertext expansion, leading to large communication overhead. Transciphering offers a solution by first encrypting data with a space-efficient symmetric cipher and then converting it to FHE ciphertext without decryption. This significantly reduces the client-side burden. The challenge lies in selecting the right FHE-friendly symmetric cipher (FHE-SC) and transciphering method, as the landscape is complex and requires deep knowledge of both fields. This paper aims to systematize this knowledge, providing a clear guide for practitioners.

Methods

The authors conduct a Systematization of Knowledge (SoK) by:

  • Categorizing FHE-SC: They classify symmetric ciphers into four groups based on their message format and FHE compatibility: FHE-friendly $\mathbb{Z}_2$ ciphers, $\mathbb{F}_p$ ciphers, standard ciphers (like AES), and $\mathbb{F}_{2^n}$ ciphers.
  • Categorizing Transciphering Methods: They group transciphering methods into "Old methods," "Transciphering to BGV scheme," "Transciphering to Vanilla FHE schemes," and "CGGI-based methods." They also introduce the "Real-to-Finite-field (RtF)" and "Binary-to-Real (BtR)" frameworks.
  • Benchmarking: They perform extensive experiments to evaluate the performance (latency and throughput) of various FHE-SC and transciphering method combinations across different FHE schemes (CGGI, RtF, BtR).
  • Application-Specific Evaluation: They assess the end-to-end performance of transciphering in two practical FHE applications: Allelic chi-square test for GWAS and privacy-preserving CNN inference.
  • Client-Side Performance Analysis: They measure the symmetric encryption performance on the client side, which is crucial for resource-constrained devices.

Datasets

Not explicitly discussed as datasets in the paper. The experiments utilize synthetic data representative of real-world FHE applications, such as data for GWAS (200 individuals, 16,384 SNPs each) and CIFAR-10 for CNN inference (images of 32x32x3 dimensions).

Key Insights and Ideas

  • Data Shape is King: The optimal choice of FHE-SC and transciphering method heavily depends on the "data shape" (size and format) required by the FHE application. Small data sizes may favor $\mathbb{Z}_2$ ciphers with CGGI, while larger datasets benefit from $\mathbb{F}_p$ ciphers with RtF.
  • $\mathbb{F}_p$ Ciphers: Powerful but Under Scrutiny: $\mathbb{F}_p$ ciphers offer excellent performance for large-scale transciphering but raise concerns about their security due to their relative novelty and potential vulnerability to algebraic attacks. Their client-side complexity also needs careful consideration.
  • AES is Still Relevant: Despite the development of specialized FHE-friendly ciphers, AES remains a competitive option, especially for client-side encryption and in scenarios where its moderate performance is acceptable. This poses a challenge for FHE-SC designers to significantly outperform AES.
  • $\mathbb{Z}_2$ Ciphers Need New Designs: Current $\mathbb{Z}_2$ ciphers often focus on minimizing AND gates, neglecting XOR gates, which are equally costly in CGGI. New designs are needed to improve efficiency for transciphering.
  • BtR Framework for Binary Operations: The BtR framework is particularly well-suited for applications involving binary circuits (like Hamming distance) when used with CKKS, offering a good balance of performance and compatibility.

Key Results

  • Transciphering Performance Varies Widely: Benchmarks show significant differences in latency and throughput. For $\mathbb{Z}_2$ ciphers with CGGI, Margrethe, FiLIP-TX, and FRAST showed good performance, with Margrethe being a top performer due to optimized key handling. For RtF and BtR, HERA and Rubato outperformed Masta and Pasta.
  • Application Performance: For the Allelic chi-square test and CNN inference, HERA and Rubato generally achieved the highest performance, though their advantage diminished compared to AES on larger tasks. AES-CTR offered a reasonable end-to-end performance.
  • Client-Side Encryption: AES-SW demonstrated the best client-side encryption performance, significantly outperforming most other ciphers. $\mathbb{F}_p$ ciphers also showed good client-side efficiency.
  • Key Size Trade-offs: Optimized transciphering methods often come with increased key sizes (e.g., GGSW keys), which can impact the one-time setup cost.

Limitations and Future Work

  • Security of $\mathbb{F}_p$ Ciphers: The paper highlights that the security of $\mathbb{F}_p$ ciphers is not as well-understood as $\mathbb{Z}_2$ ciphers, and further cryptanalysis is needed.
  • Client-Side Complexity vs. Server-Side Efficiency: A key challenge is balancing server-side efficiency with client-side resource constraints, especially for IoT devices.
  • Need for New $\mathbb{Z}_2$ Cipher Designs: The paper calls for new $\mathbb{Z}_2$ cipher designs that specifically address the cost of XOR gates in CGGI transciphering.
  • Necessity of AE in Transciphering: The paper questions the necessity of Authenticated Encryption (AE) in transciphering, suggesting it might be an area for further examination.
  • Future Work: The authors suggest that future research should focus on developing more efficient FHE-SCs and transciphering methods, particularly those that can outperform AES by a significant margin while considering both client and server costs. The interaction between cryptanalysis and countermeasures for $\mathbb{F}_p$ ciphers also requires continued investigation.

Summary updated

BibTeX
@article{niu2025sok,
  author = {Chao Niu and Benqiang Wei and Zhicong Huang and Zhaomin Yang and Cheng Hong and Meiqin Wang and Tao Wei},
  title = {{SoK: FHE-Friendly Symmetric Ciphers and Transciphering}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2025},
}

Loading related content...

Figure