International Association for Cryptologic Research

International Association
for Cryptologic Research

Transactions on Cryptographic Hardware and Embedded Systems, Volume 2024

Compress: Generate Small and Fast Masked Pipelined Circuits


Gaëtan Cassiers
UCLouvain, Louvain-la-Neuve, Belgium

Barbara Gigerl
Graz University of Technology, Graz, Austria

Stefan Mangard
Graz University of Technology, Graz, Austria

Charles Momin
UCLouvain, Louvain-la-Neuve, Belgium

Rishub Nagpal
Graz University of Technology, Graz, Austria; Silicon Austria Labs, TU-Graz SAL DES Lab, Graz, Austria


Keywords: Side-channel, Masking, HPC


Abstract

Masking is an effective countermeasure against side-channel attacks. It replaces every logic gate in a computation by a gadget that performs the operation over secret sharings of the circuit’s variables. When masking is implemented in hardware, care should be taken to protect against leakage from glitches, which could otherwise undermine the security of masking. This is generally done by adding registers, which stop the propagation of glitches, but introduce additional latency and area cost. In masked pipeline circuits, a high latency further increases the area overheads of masking, due to the need for additional registers that synchronize signals between pipeline stages. In this work, we propose a technique to minimize the number of such pipeline registers, which relies on optimizing the scheduling of the computations across the pipeline stages. We release an implementation of this technique as an open-source tool, Compress. Further, we introduce other optimizations to deduplicate logic between gadgets, perform an optimal selection of masked gadgets, and introduce new gadgets with smaller area. Overall, our optimizations lead to circuits that improve the state-of-the art in area and achieve state-of-the-art latency. For example, a masked AES based on an S-box generated by Compress reduces latency by 19% and area by 27% over a state-of-the-art implementation, or, for the same latency, reduces area by 45%.

Publication

Transactions of Cryptographic Hardware and Embedded Systems, Volume 2024, Issue 3

Paper

Artifact

Artifact number
tches/2024/a23

Artifact published
August 15, 2024

Badge
🏆 IACR CHES Results Reproduced

README

ZIP (432060 Bytes)  

License


BibTeX How to cite

Gaëtan Cassiers, Barbara Gigerl, Stefan Mangard, Charles Momin, Rishub Nagpal. Compress: Generate Small and Fast Masked Pipelined Circuits. (2024). IACR Transactions on Cryptographic Hardware and Embedded Systems, 2024(3), 500-529. https://doi.org/10.46586/tches.v2024.i3.500-529 Artifact available at https://artifacts.iacr.org/tches/2024/a23