PQCImplement-Bench: Evaluating LLMs on Implementing NIST Post-Quantum Standards in Production Cryptographic Libraries
Souhardya Saha Dip, Moshood A. Fakorede, A. B. Siddique, Umar Farooq
Abstract
A large-scale quantum computer would break the public-key cryptography that protects today's communications, and NIST has standardized ML-KEM, ML-DSA, and SLH-DSA (FIPS 203-205) as replacements that cryptographic libraries must implement. It remains unexplored whether coding agents can turn such a standard into a working and conforming patch for an existing library. This paper presents PQCImplement-Bench, a benchmark comprising 15 tasks derived from 14 pull requests across nine repositories and seven programming languages, each pairing a pre-change repository snapshot with a reviewed specification of requirements and interfaces. The benchmark grades patches with two independent test oracles that separate correctness within the repository from conformance to the standard. One oracle consists of relevant repository tests, and the other consists of NIST validation vectors for each standard. We evaluate three models, GPT-6.1-Sol, Kimi K3.1 Pro, and GLM-5.3-FlashX in OpenHands. Given only the problem statement, GPT-6.1-Sol reaches a mean pass rate of 29.0% on the validation vectors and 18.9% on repository tests. With the interface specification added, the pass rate for GPT-6.1-Sol rises to 100%, while Kimi K3.1 Pro reaches 55.8% and GLM-5.3-FlashX 6.7%. On the repository tests, the three models reach mean pass rates of 93.7%, 52.4%, and 0.0%. We release the dataset and evaluation framework for future research.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.SE
- Comments
- 10 pages, 1 figure, 6 tables
Related papers
Post-Quantum Cryptography in Data Centres: Fat-tree and Jellyfish Case Studies
Shared title terminologycs.CRIgnazio Pedone, Stefano Pirandola
Correlated Failures in Hybrid Post-Quantum and Quantum Key Distribution: A Formal Security Model
Shared title terminologycs.CRMona Alotaibi, Noora Fetais, Saif Al-Kuwari
Post-AI Cryptography: Is Cryptographic Security Ready for AI-Driven Cryptanalysis?
Shared title terminologycs.CRAli Mohammadi Ruzbahani, Abbas Yazdinejad, Hadis Karimipour
Controlled Autonomy for Agentic AI: A Layer-by-Layer Evaluation of Policy Enforcement, Cryptographic Identity and Isolation
Shared title terminologycs.CRHisham Ali, Vasileios Mavroeidis, Nikolaos Pitropakis et al.
You Better Be Sure: Evaluating Corrective Input Text on Driving-Based VLA Models
Shared title terminologycs.CRChristopher Salas, Alkim Domeke, Arpan Bansal et al.
Benchmarking Membership Privacy Risks in Preference-Based LLM Post-Training
Shared title terminologycs.CRLorenzo Rossi, Kaif Shaikh, Franziska Boenisch et al.