Towards ML-KEM & ML-DSA on OpenTitan
Optimizes ML-KEM and ML-DSA for OpenTitan's OTBN accelerator and adds hardware extensions (KMAC interface, 256-bit vector ISA) for 6-9x speedups.
Schemes: ML-KEM, ML-DSA
Findings (quotes checked against the source text)
-
Optimized ML-KEM and ML-DSA in software on the OTBN accelerator, then added tightly integrated hardware extensions to reach a 6-9x speedup over unmodified OTBN.
We implement these extensions in hardware and show that we achieve a speedup by a factor between 6 and 9 for different operations and parameter sets of ML-KEM and ML-DSA compared to our baseline implementation on unmodified OTBN.
-
Extensions include an interface from OTBN to OpenTitan's Keccak accelerator (KMAC core) and ISA extensions for 256-bit vector operations, driven by profiling results.
Based on profiling results of these implementations, we propose tightly integrated extensions to OTBN, specifically an interface from OTBN to OpenTitan's Keccak accelerator (KMAC core) and extensions to the OTBN ISA to support operations on 256-bit vectors.
-
The speedup costs little silicon: under 17% more cells in OTBN, under 3% for the full Earl Grey core.
This speedup is achieved with an increase in cell count of less than 17% in OTBN, which corresponds to an increase of less than 3% for the full Earl Grey OpenTitan core.
Numbers (as extracted, not quote-checked)
- Speedup over unmodified OTBN baseline: factor between 6 and 9
- OTBN cell count increase: less than 17%
- Full Earl Grey OpenTitan core cell count increase: less than 3%
For builders
If your PQ chain needs a hardware root of trust, OTBN plus KMAC-coupled vector extensions makes ML-KEM and ML-DSA practical at small area cost.
Limits
Based on the ePrint abstract only, since the full text was not read; targets OpenTitan OTBN specifically, so results may not transfer to other hardware.
Topics: kem sig-lattice implementation-sidechannel benchmarks hash-functions