Riding the Waves Towards Generic Single-Cycle Masking in Hardware

Authors

  • Rishub Nagpal Lamarr Security Research GmbH, Graz, Austria; Institute for Applied Information Processing and Communication (IAIK), Graz University of Technology, Graz, Austria
  • Barbara Gigerl Institute for Applied Information Processing and Communication (IAIK), Graz University of Technology, Graz, Austria
  • Robert Primas Institute for Applied Information Processing and Communication (IAIK), Graz University of Technology, Graz, Austria
  • Stefan Mangard Lamarr Security Research GmbH, Graz, Austria; Institute for Applied Information Processing and Communication (IAIK), Graz University of Technology, Graz, Austria

DOI:

https://doi.org/10.46586/tches.v2022.i4.693-717

Keywords:

Masking, Low-Latency, Dual-Rail Logic, AES, Ascon

Abstract

Research on the design of masked cryptographic hardware circuits in the past has mostly focused on reducing area and randomness requirements. However, many embedded devices like smart cards and IoT nodes also need to meet certain performance criteria, which is why the latency of masked hardware circuits also represents an important metric for many practical applications.
The root cause of latency in masked hardware circuits is the need for additional register stages that synchronize the propagation of shares. Otherwise, glitches would violate the basic assumptions of the used masking scheme. This issue can be addressed to some extent, e.g., by using lightweight cryptographic algorithms with low-degree Sboxes, however, many applications still require the usage of schemes with higher-degree S-boxes like AES. Several recent works have already proposed solutions that help reduce this latency yet they either come with noticeably increased area/randomness requirements, limitations on masking orders, or specific assumptions on the general architecture of the crypto core.
In this work, we introduce a generic and efficient method for designing single-cycle glitch-resistant (higher-order) masked hardware of cryptographic S-boxes. We refer to this technique as (generic) Self-Synchronized Masking (“SESYM”). The main idea of our approach is to replace register stages with a partial dual-rail encoding of masked signals that ensures synchronization within the circuit. More concretely, we show that WDDL gates and Muller C-elements can be used in combination with standard masking schemes to design single-cycle S-box circuits that, especially in case of higher-degree S-boxes, have noticeably lower requirements in terms of area and online randomness. We apply our method to DOM-based S-boxes of Ascon and AES and compare the resulting circuits to existing latency optimized circuits based on TI, GLM, and LMDPL. The latency of all three designs is reduced to single-cycle operation and are dth-order secure. Compared to GLM-masked Ascon, our approach comes with a 6.4 times reduction in online randomness for all protection orders. Compared to 1st-order LMDPL-masked AES, our approach achieves comparable results, while it is more generic, amongst others, by also supporting higher-order designs. We also underline the practical protection of our constructions against power analysis attacks via empirical and formal verification approaches.

Downloads

Published

2022-08-31

Issue

Section

Articles

How to Cite

Riding the Waves Towards Generic Single-Cycle Masking in Hardware. (2022). IACR Transactions on Cryptographic Hardware and Embedded Systems, 2022(4), 693-717. https://doi.org/10.46586/tches.v2022.i4.693-717