International Association for Cryptologic Research

International Association
for Cryptologic Research

Advances in Cryptology – ASIACRYPT 2025

Masked Circuit Compiler in the Cardinal Random Probing Composability Framework


Sonia Belaïd
CryptoExperts, Paris, France

Victor Normand
CryptoExperts, Paris, France; DIENS, Ecole normale supérieure, PSL University, CNRS, Inria, Paris, France

Matthieu Rivain
CryptoExperts, Paris, France


Keywords: Masking, Random probing model, Secure composition


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.

Publication

Advances in Cryptology – ASIACRYPT 2025. ASIACRYPT 2025. Lecture Notes in Computer Science, vol 16246. Springer, Singapore.

Paper

Artifact

Artifact number
asiacrypt/2025/a20

Artifact published
December 31, 2025

Badge
IACR Artifacts Functional

README

ZIP (746859 Bytes)  

View on Github

License
This work is licensed under the MIT License.

Note that license information is supplied by the authors and has not been confirmed by the IACR.


BibTeX How to cite

Belaïd, S., Normand, V., Rivain, M. (2026). Masked Circuit Compiler in the Cardinal Random Probing Composability Framework. In: Hanaoka, G., Yang, BY. (eds) Advances in Cryptology – ASIACRYPT 2025. ASIACRYPT 2025. Lecture Notes in Computer Science, vol 16246. Springer, Singapore. https://doi.org/10.1007/978-981-95-5096-8_12. Artifact available at https://artifacts.iacr.org/asiacrypt/2025/a20