Paper 2026/1624
Code Generation of Faster Formally Verified NTT with Plantard Reduction
Abstract
We present a formally verified implementation of the ML-KEM Number-Theoretic Transform (NTT) based on Plantard arithmetic, produced via a code generator that targets ML-KEM, ML-DSA, and FN-DSA from a single parameter triple. The generator embeds a static bound analyzer that places modular reductions at code-generation time without runtime branching, eliminating per-scheme manual tuning while preserving constant-time guarantees. Each generation produces structurally identical implementations in two backends: portable C, and Jasmin for formal verification. To establish end-to-end correctness, we contribute a parametric formalization of Plantard arithmetic in \textsc{EasyCrypt} and a layer-by-layer program-equivalence proof connecting the extracted Jasmin ML-KEM NTT to the abstract specification of formosa-mlkem; the existing algebraic chain is reused unchanged to extend correctness down to the mathematical NTT definition. Benchmarks across three schemes show that the generated code outperforms reference C by $1.5\times$--$1.8\times$ on the forward NTT and $1.7\times$--$2.5\times$ on the inverse, and outperforms the formally verified formosa-mlkem Jasmin baseline by $1.26\times$ and $2.19\times$ on ML-KEM. We believe our techniques generalize to other lattice-arithmetic primitives requiring both performance and formal verification.
Metadata
- Available format(s)
-
PDF
- Category
- Implementation
- Publication info
- Preprint.
- Keywords
- Number Theoretic TransformPlantard ReductionLazy ReductionFormal VerificationML-KEMLattice-based Cryptography
- Contact author(s)
-
yxuu0182 @ student monash edu
rajeev gore @ monash edu
amin sakzad @ monash edu
ron steinfeld @ monash edu
raymond @ exequantum com - History
- 2026-08-06: revised
- 2026-08-06: received
- See all versions
- Short URL
- https://ia.cr/2026/1624
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2026/1624,
author = {Donnie Y. Xu and Rajeev Gore and Amin Sakzad and Ron Steinfeld and Raymond K. Zhao},
title = {Code Generation of Faster Formally Verified {NTT} with Plantard Reduction},
howpublished = {Cryptology {ePrint} Archive, Paper 2026/1624},
year = {2026},
url = {https://eprint.iacr.org/2026/1624}
}