TWFalcon: Triple-Word Arithmetic for Falcon; Giving Falcon the Precision to Fly Securely
Implements Falcon signing with single-precision floats using triple-word arithmetic (about 72-bit precision) so it meets Gaussian sampler error bounds on FPU-only 32-bit microcontrollers.
Schemes: Falcon, TWFalcon
Findings (quotes checked against the source text)
-
Falcon implemented with double-precision floats does not meet formally proven Gaussian sampler error bounds, though no practical attack is known.
Although no practical attacks exploiting this limitation are currently known, it does give future attack concerns.
-
Triple-word floating-point arithmetic on single-precision floats achieves at least 72-bit precision, versus 53 bits for double precision.
Our proposed method uses Triple-Word Floating-Point (TW) arithmetic and achieves a precision of at least 72 bits, compared to the 53 bits of double-precision floating-point arithmetic.
-
The TW approach lets Falcon run on constrained devices with only a single-precision FPU, avoiding integer emulation of high-precision arithmetic.
This way, Falcon can run on constrained devices equipped only with a single-precision Floating-Point Unit (FPU) without the need for integer emulation.
-
Demonstrated on a Cortex-M4F board; the precision increase costs about 1.84x CPU cycles relative to emulated double precision.
we show the cost of increasing the precision of Falcon in this way only increases the computational effort by a factor of approximately 1.84 compared to the CPU cycles required for an implementation using emulated double-precision arithmetic via integers.
Numbers (as extracted, not quote-checked)
- TW arithmetic precision: at least 72 bits
- Double-precision mantissa precision: 53 bits
- Cycle overhead vs emulated double precision: approximately 1.84x
For builders
If a PQ chain signs on 32-bit embedded or hardware wallets, Falcon's float sampler can be run in single precision with TW arithmetic, at roughly 1.84x the cycles of integer-emulated double precision.
Limits
Evaluated only on one Cortex-M4F board from the abstract; side-channel resistance of the TW implementation and full-text details were not reviewed here.