Hardware Accelerator for CKKS Encryption
Offloading the Number Theoretic Transform in homomorphic encryption to an FPGA, for 1.91× faster encryption.
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