International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

Masked Circuit Compiler in the Cardinal Random Probing Composability Framework

Authors:
Sonia Belaïd , CryptoExperts
Victor Normand , CryptoExperts, DIENS, Ecole normale supérieure, PSL University, CNRS, Inria, Paris, France
Matthieu Rivain , CryptoExperts
Download:
Search ePrint
Search Google
Conference: ASIACRYPT 2025
Abstract: Designing practically secure masked circuits remains a central problem in the field of cryptographic implementation. While most masking schemes have been proven secure in the classical probing model, this model fails to capture more advanced side-channel attacks such as horizontal attacks. In recent years, the community has shifted toward the more realistic random probing model, which offers stronger guarantees. Yet, balancing strong security with practical efficiency continues to be a significant challenge. In this work, we introduce new tools and constructions that significantly improve the design and analysis of random probing secure circuits. First, we formalize new security notions that combine the benefits of cardinal and general Random Probing Composability (RPC), two recently introduced notions enabling more flexible and efficient composition of secure gadgets. We then show how uniformly random permutations can be applied to transform any cardinal or general RPC gadget into a so-called uniformly cardinal RPC gadget, thereby enhancing security at low cost. Using these techniques, we propose the first non-linear multiplication gadget, inspired by the recursive construction from CHES 2016, that achieves concrete cardinal RPC security. We provide a detailed comparison with state-of-the-art multiplication gadgets in terms of both random probing advantage and implementation complexity. Building upon this gadget, we design a tighter random probing compiler that strategically uses permutations to improve security bounds while preserving efficiency. Finally, we apply our compiler to the AES and demonstrate improved performance and security compared to existing methods.
BibTeX
@inproceedings{asiacrypt-2025-36144,
  title={Masked Circuit Compiler in the Cardinal Random Probing Composability Framework},
  publisher={Springer-Verlag},
  author={Sonia Belaïd and Victor Normand and Matthieu Rivain},
  year=2025
}