Introduction
Fully Homomorphic Encryption (FHE) represents a paradigm shift in data privacy, allowing cloud servers to process encrypted data without ever accessing the underlying information. However, FHE faces significant hurdles: high computational costs and massive ciphertext expansion. Conversely, the Advanced Encryption Standard (AES) is highly efficient with zero expansion but lacks homomorphic capabilities.
Transciphering serves as the bridge between these two technologies. In this model, a user transmits compact AES-encrypted data to the cloud along with an FHE-encrypted AES key. The cloud then performs a "homomorphic decryption" to convert the data into an FHE-compatible format. This paper introduces a record-breaking method for this conversion, achieving a throughput of less than 1ms per AES block.
Methodology
The researchers utilize the CKKS scheme, typically reserved for approximate arithmetic, and adapt it for the discrete bit-wise logic of AES. Their approach is built upon three primary optimizations:
- CI-CKKS Context Conversion: Standard CKKS operates on complex numbers. By utilizing a "Conjugate-Invariant" (CI-CKKS) ring, the authors effectively double throughput by using the space typically wasted by imaginary components. They developed a mechanism to switch between standard and CI-CKKS contexts mid-computation to optimize specific circuit steps.
- Optimized Batch Bits Bootstrapping (BB-BTS): Bootstrapping—the process of refreshing an encrypted message's noise level—is often the most expensive operation. By integrating context conversion directly into the bootstrapping circuit, the authors halved the required trigonometric evaluations.
- Lazy SubByte Evaluation: The AES S-box (SubByte step) is computationally intensive. The authors represented this as a large polynomial and implemented "lazy" key-switching and rescaling, reducing the number of costly maintenance operations from 247 to just 99.
Key Innovations
The "Context Switch" Advantage
A pivotal insight of this work is the dynamic use of mathematical rings. By performing heavy AES logic in a real-valued ring (CI-CKKS) and switching to a complex ring only for specific bootstrapping phases, the system maximizes the "slot" efficiency of the encryption scheme.
Structural Alignment and Packing
The authors designed a "packing-aware" transformation that aligns data storage in encryption slots with the specific requirements of AES ShiftRows and MixColumns. This alignment eliminates several expensive rotation operations that previously hindered performance.
CKKS for Exact Logic
While CKKS is inherently approximate, the researchers demonstrated that applying "cleaning functions" (polynomials that nudge values toward 0 or 1) allows it to handle exact bit-level logic more efficiently than bit-specific schemes like TFHE when processing large batches.
Performance Evaluation
The system was evaluated using standard AES-128 blocks on a single NVIDIA RTX 4090 GPU and an Intel Xeon Gold CPU.
- Throughput: The system achieved a per-block evaluation time of 0.994ms, representing a 1.58× speedup over the previous state-of-the-art (XBOOT).
- Latency: For smaller workloads, the system processed 512 AES blocks in 2.67 seconds. A hybrid approach combining these techniques with XBOOT reached a record low latency of 1.86s for specific batch sizes.
- Precision: The method maintained a precision of approximately $2^{-20}$, ensuring that bit-wise AES results remain perfectly accurate despite the approximate nature of the underlying CKKS scheme.
Limitations and Future Work
Despite the throughput gains, evaluating over the conjugate-invariant ring introduces a 1.4× latency penalty on GPUs due to architectural differences, suggesting room for hardware-specific tuning. Additionally, the highest efficiencies are currently tied to large batch sizes ($2^{15}$ blocks), making the overhead high for single-block processing. Future research may focus on integrating this high-speed transciphering into complete privacy-preserving pipelines, such as encrypted neural network inference.
Summary updated