arXiv:2609.04058cs.CRSep 2026

Manuscript Offprint

arXiv:2609.04058

AI-Assisted Design of a Post-Quantum Cryptographic Accelerator: A Deployed-Silicon Case Study

Jungmin Park, Eunha Kim, Wooseop Kim, Seongjoon Cho, Byungho Cha

Jungmin Park, Eunha Kim, Wooseop Kim, Seongjoon Cho, and Byungho Cha

Abstract—Post-quantum migration is mandated on published timelines, and silicon that ships with a defect cannot be patched remotely. The standard acceptance gate cannot detect an entire class of ML-DSA defects. Signing resamples until a candidate meets its norm bounds, so the executed path varies with the message, whereas known-answer tests (KATs) sample fixed values and reach only the depths their seeds trigger. Our accelerator passed its full KAT regression while carrying a norm check that outran block-RAM latency, leaving each candidate's final coefficients unverified; the escape surfaced at reject-loop iteration 5. The blind spot lies in the instrument, not the engineer; care cannot remove it. We replace that gate. A byte-exact golden-reference oracle paired with randomized adversarial soak drives the rejection loop past any fixed vector, closing the gap: 301,343 data-dependent signings, zero escapes. Because the gate judges artifacts and never authors, trust becomes separable from authorship, making AI authorship an answerable question. We report 232 logged experiments in which an agentic large language model drove a unified ML-KEM-768 and ML-DSA-65 accelerator with on-chip key custody from RTL to PCIe bring-up on one Kintex-7 XC7K160T, shipped at 98.5% slice occupancy. Success was 71.6%, following a hardware-coupling gradient, 77–85% for documentation and research against 50–53% for synthesis and bring-up, which observability can explain: failure concentrates where corrective signals are physical-side only. That so unreliable an author produced an artifact byte-exact across all six FIPS operations—its deployed baseline surviving the same 779,945-check zero-failure soak—is the claim.

Index Terms—Post-quantum cryptography, FPGA, LLM-assisted design, design methodology, empirical study, hardware security module, ML-KEM, ML-DSA, NTT, key custody, agentic AI, design automation

I. INTRODUCTION

Post-quantum cryptographic hardware is essential yet error-prone, and the test that decides whether it may ship is blind to an entire class of its defects. NIST closed PQC standardization in August 2024 with FIPS 203 (ML-KEM [1], [2]) and FIPS 204 (ML-DSA [3], [4]). CNSA 2.0 [5] and NIST IR 8547 [6] attach dates, the latter proposing deprecation of 112-bit-security RSA and ECC by 2030 and disallowance of all quantum-vulnerable algorithms by 2035. Migration is therefore a scheduled compliance obligation, and it lands hardest on hardware. Roots of trust, secure elements, and signing devices stay in the field for a decade or more and

cannot be patched remotely. A defect shipped in silicon is a recall, not a release.

The defect class that concerns us is structural: ML-DSA signing is rejection-sampled. The signer resamples until the candidate satisfies its norm bounds, so the number of iterations, and with it the control path exercised, depends on the message. Correctness is therefore a property of execution paths. Known-answer tests sample values instead, and a fixed vector set reaches only the reject-loop depths its own seeds happen to trigger. Enlarging that set does not help: the coverage limit follows from how the vectors are built, not from how many there are.

Our accelerator passed its full KAT regression while carrying BUG-IDE-037: the rejection-sampling norm check iterated over all 256 coefficients of each polynomial, but block-RAM read latency delivered the final one or two after the accept/reject decision (Section V-D). The defect was reachable only at reject-loop iteration 5, 1^{1} for one message class, and every affected signature failed verification. It is one of eight defect classes we catalogue, each caught by a validation layer the others miss (Table II).

The gap lives in the instrument: a careful team using KAT as its acceptance gate ships the same defect. We therefore replace the gate with a byte-exact golden-reference oracle paired with randomized adversarial soak that drives the rejection loop past any fixed vector's reach. Because the replacement judges artifacts and never authors, it is author-agnostic: who wrote the RTL becomes a separate question.

That separation is what makes the AI question worth asking. The deadline is fixed, engineers fluent in both lattice cryptography and FPGA timing closure are scarce, and agentic LLM coding assistants are already entering hardware flows. The open question is not whether they will be used on PQC silicon but where in the flow they can be trusted. The LLM-for-RTL literature evaluates snippets and single modules by pass@k at simulation or lint [7], [8], [9], and even agentic, tool-in-the-loop flows [10], [11], [12], [13] stop short of validated, hardened operation on deployed silicon. No published study reports how assistant reliability varies across the phases of a real campaign.

Across the 2026 development cycle (2026-01 through 2026-06) an agentic LLM assistant drove design, verification,

J. Park and B. Cha are with Lucid Motors, Newark, CA, USA. E-mail: jungminpark@lucidmotors.com; byunghocha@lucidmotors.com.

E. Kim, W. Kim, and S. Cho are with EYL Inc., Seoul, Republic of Korea. E-mail: ehkim@eylpartners.com; wskim@eylpartners.com; jhcho@eylpartners.com.

1^{1}BUG-IDE-NNV labels are the project's stable defect-log identifiers. Iterations count signing resampling rounds: the fifth candidate was the first whose only out-of-bound coefficient fell in the unchecked tail, so the device accepted what a correct signer rejects (first correct accept: iteration 8).

synthesis, host-software development, silicon bring-up, and security hardening of a unified ML-KEM-768 + ML-DSA-65 accelerator with on-chip key custody, deployed on an XC7K160T Kintex-7 over PCIe Gen2 ×8. All 232 experiments were logged. “Silicon” herein means the physically deployed FPGA in live operation, not simulation.

Three constraints made that campaign adversarial. Area was binding. Both NIST Level-3 schemes plus the custody HSM had to fit one mid-range XC7K160T, which forced a serialized number-theoretic transform (NTT) and still left the shipped build at 98.5% slice occupancy. The limit was placement density rather than arithmetic (Sections V-B and IV-F). Timing was tight. The 500 MHz domain of the Xilinx XDMA PCIe bridge sets the design's worst-case setup slack at +0.049 ns (0 failing among 178,247 endpoints design-wide); the path tipped negative during bring-up and was recovered by a seed sweep because the cause was congestion, not logic. Observability was the worst of the three. A stale command register survived soft-reset, wedging DMA ~1-in-20 yet staying hidden for weeks because the soak harness self-healed it. That did not stop the assistant from reaching a confident, plausible, and incorrect diagnosis in ten logged episodes (Section IV-F).

Where the corrective signal for a task sits in an artifact the assistant can read, it performs at software-domain rates. Where that signal exists only on the physical side of the boundary, in DMA-engine residue, reset-domain asymmetry, placement density, or silicon-versus-simulator semantics, no reasoning over readable artifacts recovers it, and reliability falls to roughly a coin flip. This hardware-coupling gradient is a claim about observability, not that hardware is harder; its remedy is to make the physical side readable.

This work makes three contributions:

(C1) A validation construction that closes a gap KAT cannot reach. Fixed-vector testing is structurally incomplete for rejection-sampled signature hardware; we demonstrate the consequence on deployed silicon (BUG-IDE-037, passed by a full KAT regression) and close it with the oracle-plus-soak gate above, over 301,343 data-dependent signings with zero escapes. The construction applies to any ML-DSA hardware effort; we generalize it into nine honesty constraints under which trust derives from validation artifacts, never from authorship (Section VIII).

(C2) The hardware-coupling gradient and its cause. From 232 structured logs (40 task categories, 76 milestones) we show that LLM success declines as tasks approach FPGA placement, timing, and live-hardware state (77–85% documentation and research; 50–53% synthesis and bring-up), and we identify the mechanism: failure concentrates where corrective information is unobservable in any artifact the model can read. We also report an eight-class bug taxonomy and ten “confidently wrong, then corrected” episodes (Sections IV-E and IV-F).

(C3) Silicon existence proof under binding constraints. The loop produced a unified ML-KEM-768 + ML-DSA-65 accelerator plus key-custody HSM co-resident on one XC7K160T at 98.5% slice occupancy with 49 ps of setup margin at 500 MHz and hardware-RNG-seeded keys under a device-bound key-encryption key (KEK)—

a combination that is, to our knowledge, unique among unified PQC accelerators. The artifact is byte-exact across all six FIPS operations, survived a zero-failure 779,945-check soak on the deployed firmware baseline v88 (vN labels successive firmware builds), and was produced through two releases to the final FIPS-203/204 wire formats (Sections V–VI). That an author measured at 71.6% task success produced an artifact with zero validation escapes is the concrete demonstration of (C1).

Efficiency here means consolidation rather than speed: both schemes plus the key-custody hardware security module (HSM) share one runtime-modulus-switched NTT/INTT datapath and one Keccak-f[1600] core. Security means key custody: private keys are generated, wrapped, and used on-die, device-bound and adversarially validated. The claim is device binding, not at-rest secrecy and not side-channel resistance. Table V places the artifact against the closest unified ML-KEM+ML-DSA accelerators on exactly that basis.

Two 2026 works combine LLMs with PQC hardware, LLM4PQC [14] and Liao et al. [15], the latter the first quantitative LLM-versus-HLS comparison (up to 2.6×2.6\times kernel speedup); the delta is one of depth rather than kind, contrasted axis by axis in Table VI (Section VII-D).

The paper proceeds from background (Section II) through the methodology (Section III), the empirical record (Section IV), and the artifact with its PCIe system (Sections V–VI) to related work (Section VII), threats to validity (Section VIII), and the conclusion (Section IX).

References (55)