PQCImplement-Bench: Evaluating LLMs on Implementing NIST Post-Quantum Standards in Production Cryptographic Libraries
2612.03088

Authors

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.

Resources

Ray graphicRay graphicRay graphicRay graphic

Stay in the loop

Every AI paper that matters, free in your inbox daily.

Details

  • takara.ai
  • Custom AI and machine learning from the Frontier Research Team.
  • © 2026 takara.ai Ltd
  • Content is sourced from third-party publications.
Ray graphicRay graphicRay graphic