LLM4PQC - Accurate and Efficient Synthesis of PQC Cores by Feedback-Driven LLMs
Buddhi Perera, Zeng Wang, Weihua Xiao, Mohammed Nabeel, Ozgur Sinanoglu, Johann Knechtel, Ramesh Karri

TL;DR
This paper introduces LLM4PQC, a framework using large language models to automate and verify the conversion of post-quantum cryptography codes into hardware-synthesizable designs, reducing manual effort and speeding up development.
Contribution
The paper presents a novel LLM-based framework for refactoring PQC codes into HLS-ready hardware designs with integrated verification, improving efficiency over traditional manual methods.
Findings
Reduces manual coding effort in PQC hardware design
Accelerates design-space exploration for PQC accelerators
Demonstrates effectiveness on NIST PQC reference designs
Abstract
The design of post-quantum cryptography (PQC) hardware is a complex and hierarchical process with many challenges. A primary bottleneck is the conversion of PQC reference codes from C to high-level synthesis (HLS) specifications, which requires extensive manual refactoring. Another bottleneck is the scalability of synthesis for complex PQC primitives, including number theoretic transform (NTT) accelerators and wide memory interfaces. While large language models (LLMs) have shown remarkable results for coding in general-purpose languages like Python, coding for hardware design is more challenging; feedback-driven and agentic integration are key principles of successful state-of-the-art approaches. Here, we propose LLM4PQC, an LLM-based framework that refactors high-level PQC specifications and reference C codes into HLS-ready and synthesizable C code. Our framework generates and verifies…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCryptography and Residue Arithmetic · Cryptographic Implementations and Security · Physical Unclonable Functions (PUFs) and Hardware Security
