Karu64: An Open RVA23 Processor with Vector Keccak Support
Hardware RISC-V processor Karu64 with a whole-permutation vector Keccak instruction (Zvknhk); accelerates SHAKE and ML-KEM/ML-DSA under Debian Linux on FPGA.
Schemes: Keccak, SHAKE128, SHAKE256, ML-KEM, ML-DSA, Zvknhk
Findings (quotes checked against the source text)
-
A whole-permutation vector Keccak instruction (vkeccak.vi) gives large SHAKE speedups in ideal-memory RTL simulation versus vector C with Zbb and Zvbb.
In ideal-memory RTL simulation, resident-state SHAKE128/256 absorption and squeezing are $79$ - $83\times$ and $105$ - $116\times$ faster, respectively, than Clang-generated vector-enabled C with Zbb and Zvbb extensions.
-
Under Linux on FPGA, end-to-end ML-KEM and ML-DSA operations gain 1.48x and 1.65x over hand-vectorized implementations.
FPGA measurements under Linux show end-to-end ML-KEM and ML-DSA operations gain $1.48\times$ and $1.65\times$, respectively, over hand-vectorized implementations, due to the central role of Keccak in these PQC standards.
-
The instruction is usable from unmodified Linux userspace because it gathers state once and returns it through existing vector registers.
Architecturally, the vkeccak.vi instruction gathers the state once, performs the permutation, and returns it through existing vector registers.
-
The hardware cost is small: a 2.29% core-area increment over the ratified-crypto baseline in NanGate45 synthesis.
A NanGate45 synthesis comparison shows a 2.29 % core-area increment over the implemented ratified-crypto baseline.
Numbers (as extracted, not quote-checked)
- SHAKE128/256 absorption and squeezing speedup vs vector C (ideal-memory RTL sim): 79-83x and 105-116x
- ML-KEM end-to-end speedup vs hand-vectorized (FPGA, Linux): 1.48x
- ML-DSA end-to-end speedup vs hand-vectorized (FPGA, Linux): 1.65x
- Core-area increment (NanGate45 synthesis): 2.29 %
- FPGA clock: 75 MHz on VCU118
For builders
A fixed-group Keccak instruction on a RISC-V vector core is a cheap way to speed up SHAKE-heavy ML-KEM/ML-DSA signing and verification on hardware a chain node might run.
Limits
Based on the ePrint abstract only (full text not read); simulation speedups are ideal-memory, FPGA is a single 75 MHz prototype, and no side-channel analysis is reported.
Topics: hash-functions kem sig-lattice implementation-sidechannel benchmarks