arXiv:2610.27204cs.CROct 2026

Manuscript Offprint

arXiv:2610.27204

A Combined Streaming FPGA Architecture for Client-Side CKKS Encoding and Encryption

Joseph Kurina, Bogdan Pasca, Suleyman Demirsoy, Sunwoong Kim

Joseph Kurina

University of Washington

Bothell, Washington, USA

kurinj@uw.edu

Bogdan Pasca

Altera Corporation

Paris, France

bogdan.pasca@altera.com

Suleyman Demirsoy

Altera Corporation

London, U.K.

suleyman.demirsoy@altera.com

Sunwoong Kim

Rochester Institute of Technology

Rochester, New York, USA

sskeme@rit.edu

Abstract—Homomorphic encryption allows a computing service to process encrypted data, but the client must first encode and encrypt its inputs. Sharing hardware between floating-point encoding and modular encryption reduces area but requires those transform roles to execute at different times. We present a streaming FPGA architecture for CKKS encoding and encryption that computes the shared floating-point encoding transform once and performs the integer transforms for six residue moduli in parallel. Dedicated transform pipelines exchange intermediate results on chip rather than through off-chip memory. DSP Builder generates the transform RTL, and Altera HLS IP Gen compiler compiles the surrounding SYCL pipeline into IP integrated with DMA and control logic in an accelerator functional unit. At polynomial degree N=8192N = 8192, the Altera Agilex 7 implementation delivers 5,143 complete ciphertexts per second at 471 MHz. One SEAL-Embedded CPU worker on the same workstation delivers 113 ciphertexts per second for real-valued inputs using all 4,096 slots. Measurements cover prepared-input computation through complete ciphertext construction, including FPGA submission and output delivery.

Index Terms—CKKS, homomorphic encryption, FPGA, SYCL, DSP Builder, streaming architecture, IFFT, NTT.

I. INTRODUCTION

Homomorphic encryption (HE) allows a computing service to operate on encrypted data without decrypting it [1]. Applications include privacy-preserving neural-network inference [2], image processing [3], and speech recognition [4]. The data owner retains the secret key, prepares encrypted inputs, and decrypts the returned results. The Cheon, Kim, Kim, and Song (CKKS) scheme supports approximate arithmetic on packed real or complex values [5]. Packing places many values in one ciphertext so that the service can process them together.

Preparing that ciphertext requires substantial computation before the service can begin. The client maps a message vector to polynomial coefficients using a complex-valued transform, scales and rounds them to integers, and encrypts the polynomial. A residue number system (RNS) represents the large ciphertext modulus through several smaller primes, requiring modular arithmetic for every prime [6]. Client-side encoding and encryption therefore combine floating-point and integer workloads, whereas most existing HE hardware research addresses server-side ciphertext operations [7]–[14].

Existing client accelerators balance arithmetic reuse against concurrent execution. Aloha-HE [15] reuses butterfly units to reduce area, while ABC-FHE [16] uses parallel streaming cores with shared Fourier and modular transform arithmetic. The accelerator proposed in this paper uses a workstation-attached FPGA with dedicated parallel number theoretic transforms (NTTs) and shares only the modulus-independent inverse fast Fourier transform (IFFT). This partition removes competition for transform engines between moduli and between the secret-key and plaintext-plus-error paths. The resulting architecture trades arithmetic reuse for concurrent encoding and encryption. Encoded coefficients pass into encryption through on-chip buffers, avoiding an intermediate off-chip memory transfer. Here, client-side identifies the data-owner operation performed by the workstation, which supplies parameters, keys, and randomness, and assembles the ciphertext.

Accepted to special session track.

The integration challenge is to preserve coefficient order across transforms and prevent input or output storage from being overwritten while still in use. SYCL expresses device computation in C++, with FPGA extensions for typed on-chip FIFOs called pipes and imported register-transfer-level (RTL) components [17]. We use these mechanisms to connect RTL developed with Altera's DSP Builder [18] to SYCL polynomial-arithmetic tasks. Altera HLS IP Gen compiler [19] compiles the tasks and their pipes into one hardware pipeline. Import buffers store transform outputs, pipes carry ordered coefficients, and the host collects complete ciphertexts after accelerator completion. Each transform transfers four coefficients together through four parallel data paths, called coefficient lanes. These lanes carry parts of one polynomial. They do not encrypt four messages independently.

The main contributions are:

  1. A streaming symmetric CKKS architecture at N=8192N = 8192 with one IFFT operating on complex doubles through four coefficient lanes, and six physical 30-bit RNS pipelines, each with two dedicated NTT engines.

  2. A hybrid SYCL/RTL implementation generated with Altera HLS IP Gen compiler, with on-chip transform buffering and a host-memory DMA interface inside an accelerator functional unit (AFU).

  3. An evaluation against one native SEAL-Embedded [20] worker running on the same host CPU.

The accelerator project repository is https://github.com/joekurina/FPT26_Agilex7_CKKS_Accelerator.

II. BACKGROUND AND RELATED WORK

References (35)