This paper provides a comprehensive performance "stress test" for BIKE (Bit Flipping Key Encapsulation), a leading candidate in NIST’s ongoing competition to standardize post-quantum cryptography. By benchmarking BIKE across everything from low-power ARM microcontrollers to high-end Intel CPUs and specialized FPGA hardware, the authors offer a roadmap for engineers looking to secure systems against future quantum threats.
TL;DR
The researchers evaluate the state-of-the-art software and hardware implementations of the BIKE post-quantum cryptosystem. They demonstrate that while BIKE can run on low-power embedded devices, specialized hardware and modern CPU instruction sets (like AVX2) are essential to achieve the millisecond-level performance required for real-time communication.
What Problem Does This Paper Address?
Current public-key cryptography (like RSA and Elliptic Curve) relies on mathematical problems that a sufficiently powerful quantum computer could solve in minutes. To prevent a "cryptographic apocalypse," the National Institute of Standards and Technology (NIST) is standardizing Post-Quantum Cryptography (PQC).
BIKE is a strong contender because it offers a great balance between performance and the size of its security keys. However, BIKE relies on complex "binary polynomial arithmetic"—essentially doing math with massive strings of 1s and 0s—which is computationally expensive. This paper investigates how well BIKE actually performs on the diverse hardware we use today, from the tiny chips in IoT devices to the powerful processors in data centers.
Methods
The authors conducted a multi-platform evaluation of three primary types of implementations:
- Software: They tested three versions—a "Reference" C99 version (highly portable), a "Portable Constant-Time" version (secure against timing attacks), and an "AVX2-optimized" version (tailored for modern Intel/AMD chips).
- Hardware (FPGA): They analyzed human-designed VHDL/SystemVerilog implementations, including "Official" versions and "Client-Server" optimized designs.
- Hybrid (HW/SW): They looked at solutions created using High-Level Synthesis (HLS), which allows developers to write C-like code that is automatically converted into hardware logic on Xilinx Zynq SoCs.
The testing covered three NIST security levels (SL1, SL3, and SL5), roughly equivalent to the security of AES-128, -192, and -256.
Datasets
As this is a performance evaluation of cryptographic algorithms rather than a machine learning study, the "datasets" consist of the standard parameter sets defined by the BIKE specification for NIST security levels 1, 3, and 5. Performance was measured using execution time (latency) and hardware resource utilization (Look-Up Tables, Flip-Flops, and Memory blocks).
Key Insights and Ideas
- The Decoding Bottleneck: The "Bit Flipping" decoder (BGF) and polynomial inversion are the most expensive parts of the algorithm. In software, decoding can take up to 75% of the total execution time.
- Instruction Sets are Game-Changers: Modern CPUs have specialized instructions for "carry-less multiplication" (like
PCLMULQDQon Intel orVMULL.P64on ARM). Using these can speed up BIKE by more than 10x compared to generic code. - The HLS Penalty: While High-Level Synthesis (HLS) makes hardware design easier for software engineers, it is currently inefficient for complex crypto like BIKE. The HLS-generated hardware was significantly slower and used more resources than hand-optimized hardware designs.
- Hardware Outperforms High-End CPUs: The best-performing hardware implementation (on a mid-range FPGA) completed the BIKE process in just 0.61ms, outperforming even a high-end Intel i5 CPU using AVX2 (1.06ms).
Key Results
- Software Performance: On a 32-bit ARM Cortex-A9, BIKE takes about 811ms to run. On a modern 64-bit Intel CPU with AVX2, that drops to just 1.06ms.
- Hardware Efficiency: The "Official" hardware implementation is the most resource-efficient, fitting comfortably on small, cost-effective FPGAs like the Artix-7 25.
- The "Sweet Spot": For most applications, the 64-bit ARM Cortex-A53 (found in devices like the Raspberry Pi) provides a solid middle ground, running BIKE in about 57ms without needing specialized hardware.
Limitations and Future Work
The authors note that while HLS-based hybrid solutions are easier to develop, their current performance is disappointing compared to pure software on modern 64-bit CPUs. They suggest that future work should focus on improving HLS tools to better handle the specific mathematical structures used in code-based cryptography. Additionally, as BIKE continues through the NIST standardization process (now in Round 4), implementations will need to be updated to reflect the latest tweaks to the algorithm's parameters.
Summary updated