arXiv:2610.08301cs.CROct 2026

Manuscript Offprint

arXiv:2610.08301

Zeppelin: Client-Side BFV Encryption and Decryption for Helium-Powered Microcontrollers

Muhammad Saif ul Islam, Karar Haider, Manaal Malik, Naveed Anwar Bhatti, Muhammad Ali Siddiqi

Muhammad Saif ul Islam, Karar Haider, Manaal Malik, Naveed Anwar Bhatti and Muhammad Ali Siddiqi

School of Science and Engineering, Lahore University of Management Sciences, Lahore, Pakistan

Abstract. The growth of the Internet of Things (IoT) has increased concerns over the privacy of data collected by resource-constrained sensing devices. Homomorphic encryption (HE) is an attractive way to address this: a device could encrypt its data once and let an untrusted cloud server compute on the ciphertext without seeing the underlying values. In practice, HE's memory and computational cost have kept it out of reach of microcontroller-class devices. Prior work, SEAL-Embedded, made this feasible for the first time using the CKKS scheme, but left three opportunities unexplored: its arithmetic is entirely scalar, even on hardware with a vector instruction set; it never decrypts on the device, so the client can produce ciphertexts but not consume a result; and it does not explore BFV, a scheme whose encoding uses only integer arithmetic and decrypts exactly, which enables applications previously impossible given CKKS's inherent approximation. We present Zeppelin, the first HE library to use an embedded vector instruction set, and the first to support both encryption and decryption on an embedded device, using BFV, which had not previously been demonstrated on MCU-class hardware at all. Zeppelin vectorizes the number-theoretic transform, HE's main computational bottleneck, for ARM's Helium extension, and includes a decryption procedure built to avoid large-integer arithmetic and any timing leakage of the secret key. A server-side adapter converts Zeppelin's ciphertexts into a format compatible with Microsoft SEAL, giving an end-to-end deployment where the device handles encryption and decryption while the server performs all homomorphic computation. On an STM32N6 MCU with an ARM Cortex-M55, Zeppelin encodes and encrypts 4096 packed values in 4.76 ms (128-bit security, per the HE standard) and decrypts and decodes the result in 5.38 ms, using under 500 KB of RAM, with the vectorized NTT engine ∼2.7×\sim2.7\times faster than an equivalent scalar implementation on the same core.

Keywords: Homomorphic Encryption · Embedded Systems · BFV · NTT

1 Introduction

Outsourcing computation to the cloud typically means giving up confidentiality: the server must see data in the clear to operate on it. Homomorphic encryption (HE) removes this trade-off by allowing computation directly on encrypted data, so a client can offload work to an untrusted server without ever revealing its inputs. This property is particularly valuable for Internet-of-Things (IoT) deployments, where sensing devices are resource-constrained and routinely offload computation to the cloud, yet increasingly handle sensitive data that the device owner cannot afford to expose. Bringing HE onto such devices, however, requires a scheme whose client-side operations fit within a microcontroller's tight memory and compute budget.

CKKS, an approximate-arithmetic HE scheme with native support for real-valued data, is a natural target for sensor-style workloads, and SEAL-Embedded [ND21] demonstrated

Zeppelin: Client-Side BFV for Helium-Powered MCUs

Trusted STM32N6 device

Untrusted cloud

Figure

Figure 1: Zeppelin end-to-end deployment.

that this is feasible: CKKS encoding and encryption fit within 64–137 KB of RAM, in 737 ms on a Cortex-M4 and 77 ms on a Cortex-A7. It leaves two things unaddressed, however. First, its arithmetic is entirely scalar: even on the Cortex-A7, whose core includes the NEON vector extension, SEAL-Embedded computes the number-theoretic transform (NTT) in plain scalar C and so leaves the throughput NEON could offer untapped, since the NTT dominates HE's cost and is exactly the workload an embedded vector extension can accelerate. Second, it never decrypts on-device; the client can produce ciphertexts for the server but cannot itself consume a computed result without an additional, unimplemented decryption step. Consider, for example, a wearable that offloads risk scoring to the cloud: it still needs some other trusted party to decrypt the result before the patient can act.

A third gap sits alongside the two above, in the choice of scheme itself. CKKS encodes through a double-precision complex FFT, which is slow and memory-heavy on a fixed-point MCU. BFV [Bra12, FV12] encodes with an integer NTT modulo the plaintext modulus tt, reusing the same modular arithmetic units that encryption already requires, and packs twice as many slots at equal ring degree while returning exact integers rather than approximations. Despite this apparent fit for MCU-class hardware, no BFV encode-and-encrypt library has been demonstrated on such a device.

Zeppelin 1^{1} closes all three gaps at once: it uses a vector ISA to accelerate the NTT, and it runs the entire BFV client pipeline, encoding, key generation, encryption, and decryption, on the device itself, with evaluation remaining server-side as is standard for leveled HE deployments. In essence, this paper makes the following contributions:

• The first HE implementation on an embedded vector ISA. Since the NTT dominates HE’s computational cost, we design a blocked NTT schedule for ARM’s Helium/MVE extension that factors a 4096-point transform into tiles that fit the vector register file and instruction memory, together with a lazy-reduction scheme that avoids unnecessary modular reductions between stages.

• The first on-device decryption for embedded HE, and the first BFV client. Zeppelin’s on-device decryption closes the loop that a complete client-side HE implementation requires. The library also provides on-device encoding, key generation, and symmetric and public-key encryption, made practical by targeting a vector MCU, using a division-free decryption procedure and a compact seed-based ciphertext format.

• An end-to-end deployment compatible with existing HE tooling. A server-side adapter converts the ciphertext bytes Zeppelin transmits into ciphertexts compatible with the unmodified Microsoft SEAL library [Mic23], allowing an untrusted server to perform homomorphic computation (Figure 1).

• A rigorous, cross-implementation correctness methodology. We check a reference implementation, an instruction-accurate simulator, and real hardware against each other, and confirm interoperability by showing that unmodified Microsoft

1^{1}Zeppelin is available at: https://anonymous.4open.science/r/zeppelin-2F7C

SEAL can decrypt our library's ciphertexts and correctly evaluate homomorphic additions, multiplications, and relinearizations over them.

• Measured performance on a real embedded device. We provide performance, memory usage, and an approximate energy estimate for our library on an ARM Cortex-M55 microcontroller, at n = 4096 with a 104-bit ciphertext modulus (128-bit security).

The rest of the paper proceeds as follows. Section 2 covers background and related work. Section 3 describes Zeppelin's design and threat model. Section 4 walks through the implementation as design decisions, each with rationale and measured impact. Section 5 presents the evaluation, and Section 6 concludes the discussion.