ECO-CRYSTALS: Efficient Cryptography CRYSTALS on Standard RISC-V ISA
Optimized CRYSTALS-Kyber and CRYSTALS-Dilithium on 64-bit RISC-V: tailored Keccak scheduling, Montgomery/Plantard NTT and row-to-column matrix-vector multiplication, reporting cycle-count speedups.
Schemes: CRYSTALS-Kyber, CRYSTALS-Dilithium, Keccak-p[1600,24], ML-KEM, ML-DSA
Findings (quotes checked against the source text)
-
Keccak-p[1600,24] scheduled for the 64-bit dual-issue RISC-V core achieves a 59.18% speed-up over the reference implementation.
Our 24-round Keccak permutation (Keccak-$p$[1600,24]) achieves a 59.18% speed-up compared to the reference implementation.
-
NTT, matrix-vector multiplication and INTT are sped up by 53.85% to 85.57% relative to the reference implementation.
Compared to the reference implementation, we obtain a speedup of 53.85%$\thicksim$85.57% for NTT, matrix-vector multiplication, and INTT in our ECO-CRYSTALS.
-
Kyber key generation, encapsulation and decapsulation take 399k, 448k and 479k cycles, speedups of 60.82%, 63.93% and 65.56%.
achieves 399k, 448k, and 479k cycles respectively, achieving speedups of 60.82%, 63.93%, and 65.56% compared to the NIST reference implementation.
-
Dilithium key generation, sign and verify take 1,364k, 3,191k and 1,369k cycles, speedups of 54.84%, 64.98% and 57.20%.
reaches 1,364k, 3,191k, and 1,369k cycles, showcasing speedups of 54.84%, 64.98%, and 57.20%, respectively.
-
This is claimed as the first deployment of Kyber and Dilithium on the 64-bit RISC-V ISA.
Notably, this paper is the first to deploy Kyber and Dilithium on the 64-bit RISC-V ISA.
Numbers (as extracted, not quote-checked)
- Keccak-p[1600,24] speed-up vs reference: 59.18%
- NTT, matrix-vector multiply, INTT speed-up vs reference: 53.85% to 85.57%
- Kyber keygen / encaps / decaps cycles: 399k / 448k / 479k
- Dilithium keygen / sign / verify cycles: 1,364k / 3,191k / 1,369k
For builders
Treat this as a RISC-V software-performance reference for ML-KEM/ML-DSA-style lattice code, useful only if your validator hardware is RISC-V; it does not address chain design.
Limits
Cycle counts and speedups are relative to the NIST reference code on one RISC-V platform; the abstract mentions no side-channel hardening, and the schemes are pre-standard Kyber/Dilithium versions.
Topics: kem sig-lattice implementation-sidechannel benchmarks hash-functions