PQC-HA: A Framework for Prototyping and In-Hardware Evaluation of Post-Quantum Cryptography Hardware Accelerators
Builds HLS-based FPGA accelerators for CRYSTALS Kyber and Dilithium via TaPaSCo, verifies them against NIST KATs, and measures PCIe overhead versus AVX2 software.
Schemes: CRYSTALS-Kyber, CRYSTALS-Dilithium, TaPaSCo, ML-KEM, ML-DSA
Findings (quotes checked against the source text)
-
PCIe communication overhead of the NIST standard interface alone exceeds the software execution time of optimized AVX2 Kyber at Security Level 1, so the accelerator cannot win there.
For Kyber 1 Decapsulation the communication overhead alone is already higher than the software implementation.
-
HLS-generated hardware is roughly a magnitude larger than HDL designs from prior work and not faster, so HLS is judged inferior to HDL for these schemes.
This diagram affirms the conclusion of Dang, Mohajerani, and Gaj that HLS implementations cannot keep up with HDL designs.
-
Kyber and Dilithium PEs were verified correct on real FPGA hardware by running NIST Known Answer Test vectors through a Rust TaPaSCo host runtime.
All PEs produce correct results, which are verified by the TaPaSCo host runtime application.
-
Kyber Encapsulation needed a modified random buffer supplied from the host because FPGA has no secure RNG, so the KAT match depends on that change.
To enable verification of algorithms that depend on random input data deterministically and at the same time avoid using insecure Random Number Generator (RNG) units on the Field-programmable Gate Array (FPGA), we extend the NIST interface to supply the PEs with pre-initialized random buffers from the host.
-
Dilithium keypair generation was excluded from the accelerator because it depends on a secure RNG unavailable on the FPGA.
We exclude the keypair generation due to its dependence on a secure RNG, which is unavailable on the FPGA.
Numbers (as extracted, not quote-checked)
- Kyber 1 Encapsulate PE mean duration on VC709 (TaPaSCo): 683.862819 µs
- Dilithium 2 Verify PE mean duration on AU280 (TaPaSCo): 1762.056637 µs
- Dilithium 2 Sign PE on VC709 and AU280: Deadlock; mean duration 29675.418265 µs (VC709) and 23564.663024 µs (AU280) reported
- Communication overhead across all PEs: around/less than 10 000 ns
- Test platform: Xilinx VC709 and Alveo U280 FPGAs, PCIe 3.0, AMD EPYC 7443P host CPU, 1000 runs averaged
For builders
Off-chip PQ accelerators over PCIe lose to optimized AVX2 software for Kyber/Dilithium latency, so for chain nodes benchmark end-to-end including transfer overhead before assuming hardware speedup.
Limits
Only latency and resource usage on two FPGAs; no throughput or pipelining results; Dilithium Sign on Virtex-7 and AU280 deadlocked; keygen excluded; pre-standard round-3 reference code.
Topics: implementation-sidechannel benchmarks kem sig-lattice standards-policy