Paper 2026/1265

A Billion Hard CRYSTALS: Automated Design Space Exploration of Mixed-Domain Masking for PQC in Hardware

Fabian Buschkowski, Ruhr University Bochum
Niklas Höher, Ruhr University Bochum
Pascal Sasdrich, Ruhr University Bochum
Tim Güneysu, Ruhr University Bochum, German Research Centre for Artificial Intelligence
Abstract

Lattice-based post-quantum cryptographic schemes such as ML-KEM or ML-DSA combine bitwise operations, which are most efficiently masked using Boolean secret sharing, with arithmetic operations modulo q, which are cheaper to mask using an additive sharing in the respective field or ring. Previous work has automated the generation of Boolean-masked hardware circuits as well as the design space exploration process, but to the best of our knowledge, no similar generic framework exists for hardware designs requiring mixed masking domains. Such designs pose three additional challenges. First, share-wise arithmetic requires no registers to be secure, leading to long critical paths without deliberate pipelining. Second, the conversions required at domain boundaries increase both complexity and susceptibility to human error. Finally, generation of masking randomness from a traditional PRNG requires post-processing, e.g., via rejection sampling, to achieve uniformity modulo q, which results in a variable output rate. We solve these issues and integrate our scheme-agnostic solutions into the masking and design space exploration framework HADES. An efficient pre-synthesis critical path estimation, which is around 60 times faster than synthesis with traditional timing analysis, enables effective exploration of mixed-domain masked circuits without compromising the maximum clock frequency. Our adapted gadget-based masking procedure tracks masking domains and inserts pipelined conversions at domain boundaries automatically, or lets the template developer place resource-shared conversions manually. Lastly, a Markov-chain model of probabilistic masking randomness generation and buffering yields cost-minimal design configurations that guarantee stall-free masked operation except for a user-defined failure probability. We evaluate our methodology for multiple relevant moduli and implement an arbitrary-order masked ML-KEM decapsulation core as a case study for our open-source framework. Its area-optimized configurations represent, to the best of our knowledge, the most compact reported ML-KEM designs, with 54.1 kGE unmasked and 125.4 kGE at first order using the NanGate45 library. Jointly optimizing for area and critical path yields competitive clock frequencies of 325–429 MHz for at most 31% more area, which is still smaller than all previous designs. Practical side-channel security at both first and second masking order is validated through FPGA-based TVLA measurements of the full decapsulation routine using 10 million traces each.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
Keywords
Design Space ExplorationHardware ImplementationsML-KEMHigher-Order MaskingArithmetic MaskingMasking Conversions
Contact author(s)
fabian buschkowski @ rub de
niklas hoeher @ rub de
pascal sasdrich @ rub de
tim gueneysu @ rub de
History
2026-10-16: revised
2026-06-16: received
See all versions
Short URL
https://ia.cr/2026/1265
License
Creative Commons Attribution-NonCommercial
CC BY-NC

BibTeX

@misc{cryptoeprint:2026/1265,
      author = {Fabian Buschkowski and Niklas Höher and Pascal Sasdrich and Tim Güneysu},
      title = {A Billion Hard {CRYSTALS}: Automated Design Space Exploration of Mixed-Domain Masking for {PQC} in Hardware},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1265},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1265}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.