Paper 2024/1192 Original: eprint.iacr.org/2024/1192 ↗

Towards ML-KEM & ML-DSA on OpenTitan

Amin Abdulrahman
Felix Oberhansl
Hoang Nguyen Hien Pham
Jade Philipoom
Peter Schwabe
Tobias Stelzer
Andreas Zankl
Abstract

This paper presents extensions to the OpenTitan hardware root of trust that aim at enabling high-performance lattice-based cryptography. We start by carefully optimizing ML-KEM and ML-DSA --- the two algorithms primarily recommended and standardized by NIST --- in software targeting the OTBN accelerator. 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. 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. 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.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
History
2025-05-14: last updated
2024-07-24: published
Short URL
https://ia.cr/2024/1192
License
https://creativecommons.org/publicdomain/zero/1.0/

BibTeX

@misc{cryptoeprint:2024/1192,
      author = {Amin Abdulrahman and Felix Oberhansl and Hoang Nguyen Hien Pham and Jade Philipoom and Peter Schwabe and Tobias Stelzer and Andreas Zankl},
      title = {Towards ML-KEM & ML-DSA on OpenTitan},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1192},
      year = {2024},
      url = {https://eprint.iacr.org/2024/1192}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.