Zeppelin speeds secure encryption on tiny IoT microcontrollers
Zeppelin: Client-Side BFV Encryption and Decryption for Helium-Powered Microcontrollers
Cryptography and SecurityHardware Architecture
Summary
Collecting data from small smart devices raises privacy worries because those devices often can't protect data well. The authors created Zeppelin, a tool that lets tiny devices encrypt their data securely and also decrypt results right on the device itself, something hard to do before. Zeppelin uses smart tricks to speed up complex math using special hardware features on microcontrollers, making the process much faster and using less memory. This helps devices send encrypted data to servers that can work on it without ever seeing the actual data, improving privacy in IoT systems.
What this means in practice
- •For iot device developers: Enable small IoT devices to encrypt sensor data and decrypt results locally using efficient homomorphic encryption on constrained hardware.
- •For cloud service operators: Process encrypted IoT data from embedded devices without needing to decrypt it, preserving user privacy during cloud computation.
Authors
Muhammad Saif ul Islam, Karar Haider, Manaal Malik, Naveed Anwar Bhatti, Muhammad Ali Siddiqi
Abstract
The growth of the Internet of Things (IoT) has raised concerns over the privacy of data collected by resource-constrained sensing devices. Homomorphic encryption (HE) addresses this by letting a device encrypt its data once and an untrusted cloud server compute on the ciphertext without seeing the 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 using CKKS, but left three gaps: its arithmetic is entirely scalar, even on hardware with a vector instruction set; it never decrypts on the device, so the client cannot consume a result; and it does not explore BFV, whose encoding uses only integer arithmetic and decrypts exactly. We present Zeppelin, the first HE library to use an embedded vector instruction set, the first to support both encryption and decryption on an embedded device, and the first BFV implementation on MCU-class hardware. Zeppelin vectorizes the number-theoretic transform, HE's main bottleneck, for ARM's Helium extension, and includes a decryption procedure that avoids large-integer arithmetic and timing leakage of the secret key. A server-side adapter converts Zeppelin's ciphertexts into a format compatible with Microsoft SEAL, so 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 (seeded symmetric, 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 ${\sim}2.7\times$ faster than an equivalent scalar implementation on the same core.