Formal Verification of Emulated Floating-Point Arithmetic in Falcon
Finds that Falcon's emulated floating-point multiplication wrongly zeroizes products near the smallest normal value, shows the FFT is unaffected via CryptoLine modeling, and proves a Jasmin/Armv7-M replacement equivalent.
Schemes: Falcon
Findings (quotes checked against the source text)
-
Falcon's emulated floating-point multiplication in the submission package does not match its claimed behavior: some products near the smallest normal value are incorrectly zeroized.
We show that there is a discrepancy between the emulated floating-point multiplication in the submission package of the digital signature Falcon and the claimed behavior.
-
The discrepancy does not affect the complex FFT used in Falcon signature generation, per CryptoLine modeling of floating-point add, subtract, and multiply.
However, we show that the discrepancy doesn’t affect the complex fast Fourier transform in the signature generation of Falcon by modeling the floating-point addition, subtraction, and multiplication in CryptoLine.
-
The authors implemented their own floating-point multiplications in Armv7-M assembly and Jasmin and proved them equivalent to the CryptoLine model.
We later implement our own floating-point multiplications in Armv7-M assembly and Jasmin and prove their equivalence with our model, demonstrating the possibility of transferring the challenging verification task (verifying highly-optimized assembly) to the presumably more readable code base (Jasmin).
For builders
If you reuse Falcon's reference code, verify its emulated floating-point multiplication yourself or use the authors' verified Jasmin replacement rather than trusting the submission package.
Limits
Based on the ePrint abstract only; full text was not read, so the scope of the zeroization bug and the verification details are unconfirmed.
Topics: sig-lattice implementation-sidechannel cryptanalysis