Optimized Software Implementation of Keccak, Kyber, and Dilithium on RV{32,64}IM{B}{V}
Optimizes Keccak, Kyber and Dilithium software on RISC-V (RV32/64 IM, B, V extensions) for dual-issue CPUs, reporting new Keccak and NTT performance records.
Schemes: Keccak, Kyber, Dilithium, ML-KEM, ML-DSA, Plantard multiplication, Montgomery arithmetic
Findings (quotes checked against the source text)
-
Keccak and NTT implementations across various RISC-V ISAs achieve new performance records.
Ultimately, our testing demonstrates that our implementations of Keccak and NTT across various ISAs achieve new performance records.
-
Optimizations target Keccak via bit interleaving, lane complementing, in-place processing, and hybrid vector/scalar implementations, tuned for dual-issue RISC-V CPUs.
Specifically, for Keccak, we revisit a range of optimization techniques, including bit interleaving, lane complementing, in-place processing, and hybrid vector/scalar implementations.
-
NTT for Kyber and Dilithium is optimized using Plantard and Montgomery arithmetic across diverse RISC-V ISAs.
For the NTT implementations of Kyber and Dilithium, we deliver optimized solutions based on Plantard and Montgomery arithmetic for diverse RISC-V ISAs, incorporating extensive dual-issue enhancements.
-
The paper improves the signed Plantard multiplication algorithm proposed by Akoi et al.
Additionally, we improve the signed Plantard multiplication algorithm proposed by Akoi et al.
For builders
If a PQ chain runs validators or clients on RISC-V, these optimized Keccak and NTT kernels are a reference point for signature and KEM verification cost.
Limits
Software-only performance work on RISC-V; based on the ePrint abstract only, with no reported cycle counts or sizes, and no blockchain or migration content.
Topics: implementation-sidechannel benchmarks kem sig-lattice hash-functions