Athithan Elamaran
← All projects

Hardware Accelerator for CKKS Encryption

Offloading the Number Theoretic Transform in homomorphic encryption to an FPGA, for 1.91× faster encryption.

Boston University RISE · Prof. Ajay Joshi’s lab, with Lohit Daksha and Seyda Guzelhan · Summer 2025

A fully unrolled 8-point Number Theoretic Transform: three stages of Cooley-Tukey butterflies, each multiplying by a twiddle factor and producing a sum and a difference.
The 8-point NTT, built from Cooley-Tukey butterflies, at the core of each accelerator.

Fully homomorphic encryption lets you compute on data while it stays encrypted, but it’s slow, and much of the cost is polynomial multiplication. I built a hardware-software version of CKKS encryption on a Xilinx Zynq-7000: the ARM core handles sampling and coefficient arithmetic, and the FPGA runs the Number Theoretic Transform that makes polynomial multiplication fast.

I designed three NTT accelerators in Verilog to compare speed against area: a single-cycle combinational design, a three-stage pipeline, and a smaller pipeline that reuses one row of butterflies with a bit-reversal shuffle between stages. Each uses Barrett reduction for modular multiplication and is driven by the ARM core over AXI.

Faster CKKS encryption than the ARM core alone
1.91×
Encryption time with the FPGA, down from 33.21 μs
17.42μs
Fastest NTT design, the 3-stage pipeline
39.54MHz
NTT architectures compared
3
Results: CKKS encryption takes 33.21 microseconds on the ARM core and 17.42 with the combinational FPGA NTT, a 1.91x speedup. The combinational design runs at 10.82 MHz, the 3-stage pipeline at 39.54 MHz, and the 1-row pipeline at 23.40 MHz, which also uses the fewest DSP slices and LUTs.
Results: encryption time, NTT design metrics, and resource use for each design.