Paper 2026/2507
safeRNSgcd: Accelerating Falcon key generation with RNS in SafeGCD
Abstract
The deepest level of Falcon's NTRU solver needs only one Bézout coefficient from two large integer resultants already represented in a residue number system (RNS). We give $\mathtt{safeRNSgcd}$, which computes this coefficient while keeping the large states in RNS. Its central insight is that centered explicit CRT can recover the exact low bits needed by SafeGCD batches using single-word fixed-point arithmetic. Integrated into $\mathtt{ntrugen}$, our C implementation reduces inversion and private-key basis-generation costs on a Raspberry Pi 5 and two x86-64 processors, compared with original $\mathtt{ntrugen}$ and a variant omitting the unused coefficient.
Comments