A finite field modular operation acceleration implementation method for a RISC-V processor
By constructing an unsaturated multi-limb representation model and a delayed carry propagation mechanism on a RISC-V processor, the finite field operation of the SQIsign algorithm is optimized, solving the performance bottleneck of the RISC-V processor when executing the SQIsign algorithm, and achieving efficient acceleration of finite field operation and quantum security.
Patent Information
- Application Number
- CN202610420142.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2026-04-01
- Publication Date
- 2026-06-19
- Estimated Expiration
- 2046-04-01
AI Technical Summary
Existing RISC-V processors suffer from performance bottlenecks when performing finite field operations using the SQIsign algorithm, especially in operations such as modular addition, modular subtraction, modular multiplication, and modular squaring. They lack dedicated instruction support for arithmetic operations in finite fields with extremely large bit widths, resulting in low computational efficiency and making it difficult to scale up applications in scenarios with high real-time requirements.
By constructing a non-saturated multi-limb representation model in the 64-bit general-purpose registers of the RISC-V processor, a fixed mapping relationship between data limbs and registers is established. Combining a delayed carry propagation mechanism and a unified modular reduction path planning, an instruction scheduling strategy that interleaves computation and memory access is designed to ensure that data resides in registers during the operation cycle. Carry propagation and modular reduction are completed through a branchless instruction sequence, thereby optimizing register resource allocation and instruction scheduling.
While maintaining constant-time execution characteristics, it significantly improves computational efficiency, reduces memory accesses, enhances resistance to timing side-channel attacks, and has good compatibility and portability, achieving a computational speedup of several times compared to existing implementations.