Masking FALCON's Floating-Point Multiplication in Hardware

Emre Karabulut, Aydin AysuIACR Trans. Cryptogr. Hardw. Embed. Syst 2024 · DOI · OpenReview

Abstract

The FALCON digital signature algorithm, a NIST-approved post-quantum standard, relies on double-precision floating-point arithmetic, which is highly susceptible to side-channel attacks. This paper introduces the first hardware-based masking scheme for floating-point multiplication. By utilizing the Probe-Isolating Non-Interference (PINI) model, the authors design secure hardware gadgets—including a masked integer multiplier and carry calculator—that effectively hide secret keys from Differential Power Analysis (DPA). Evaluation on a Kintex-7 FPGA confirms the design's security against 10 million power traces, with performance optimizations reducing overhead significantly compared to software-based masking.

Introduction

As the cryptographic community transitions to post-quantum standards, the FALCON digital signature algorithm has emerged as a frontrunner due to its efficiency. However, FALCON is unique in its heavy reliance on double-precision floating-point arithmetic for polynomial multiplications in the Fast Fourier Transform (FFT) domain. Standard floating-point operations are notoriously "loud" in terms of side-channel emissions; previous research demonstrated that attackers could extract secret keys using Differential Power Analysis (DPA) with as few as 1,000 power measurements. While software-based masking has been attempted, it often fails due to micro-architectural leakages. This paper addresses the gap by providing a secure hardware implementation.

Methodology

The authors employ masking, a cryptographic technique where sensitive variables are split into multiple randomized "shares." The hardware processes these shares independently, ensuring the actual secret value is never reconstructed in a way that leaks information.

Secure Hardware Gadgets

The core contribution involves several novel hardware gadgets proven secure under the Probe-Isolating Non-Interference (PINI) model. This model ensures that even if an attacker probes internal wires, they cannot reconstruct the secret.

  • Masked Integer Multiplier: To handle the 53-bit mantissa multiplication on FPGAs, the operation is decomposed into 8-bit chunks.
  • Masked Carry Calculator: Handling carries in the masked domain is a significant challenge. The authors developed a dedicated Carry Calculator that uses a single masked AND gate to determine carries bit-by-bit, maintaining security while minimizing area.
Detailed architecture of the masked multiplier and carry calculator gadgets, showing the processing of shares and the carry calculation logic.

The "Boolean League"

A suite of gadgets handles the complex logic of floating-point arithmetic—such as checking for zero exponents or selecting the correct mantissa after a shift—all within the masked domain.

Logic flow of the floating-point multiplier components, including zero check, Boolean OR operations, and multiplexing.

The team explored three architectural tiers: Low-area (prioritizing small size), Balanced, and High-performance (prioritizing speed through parallelization of the carry calculations).

Experimental Evaluation

The design was implemented on a Sakura-X FPGA board (Xilinx Kintex-7) and evaluated using Test Vector Leakage Assessment (TVLA). To ensure rigorous security, the authors collected 10 million power traces—a significant increase over the 100,000 traces typically used in software studies. They tested both "fixed-vs-random" and "fixed-vs-fixed" scenarios to catch corner cases in the mantissa logic.

Results and Discussion

The implementation successfully passed all TVLA tests, with t-scores remaining within the ±4.5 confidence threshold, indicating no first-order side-channel leakage detected.

While protecting the hardware introduces an area overhead of 5.42x to 43.31x in terms of Look-Up Tables (LUTs), the performance gains are substantial. The high-performance design achieves a throughput of one operation every 32 cycles. This is a massive improvement over the low-area version (7,049 cycles) and even outperforms previously proposed software masking schemes (3,772 cycles).

Conclusion

This work provides a critical defense for FALCON by securing its most vulnerable component. While the authors focused on multiplication and mantissa selection, future work may address the final rounding step and extend the protection to higher-order masking to defend against more sophisticated multi-variate attacks. The ultimate goal remains the integration of this secure multiplier into a full, end-to-end hardware implementation of the FALCON signature scheme.

Summary updated

Abstract

Floating-point arithmetic is a cornerstone in a wide array of computational domains, and it recently became a building block for the FALCON post-quantum digital signature algorithm. As a consequence, the side-channel security of these operations became under scrutiny. Recent works unveiled the first side-channel attack specifically targeting floating-point multiplication to steal secret cryptographic keys. Despite these new attacks on floating point arithmetic, there is no secure hardware design for side-channel leakage to date. A concurrent work has applied masking of floating-point multiplication in software [CC24], but their empirical validation still demonstrated significant first-order leakages. This paper presents the first hardware masking scheme for floating-point multiplication to mitigate side-channel attacks. Our technique extends the cryptographic masking principles that split all intermediate computations into multiple, random shares while preserving the output functionality. Our innovation also provides a design-time configurable first-order masked multiplier gadget that carries out integer multiplication, which can support future designs. To that end, we propose new hardware gadgets including Integer Multiplier, Carry Calculator, Secure MUX, Zero Check, and Mantissa Selection, and we prove their security in the PINI model. Moreover, we validate the desired firstorder side-channel security of our implementation on a Sakura-X FPGA board using 10 million measurements. We explore the design space with different architectural choices to trade-off performance for the area. Our implementation results show that masking overhead ranges between 5.42x-43.31x in the area and 2x-440x in throughput.
BibTeX
@article{karabulut2024masking,
  author = {Emre Karabulut and Aydin Aysu},
  title = {{Masking FALCON's Floating-Point Multiplication in Hardware}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2024},
  doi = {10.46586/tches.v2024.i4.483-508},
}
Figure