Paper 2026/988
Maskaglia: A New, Efficient Approach to Masked Discrete Gaussian Sampling
Abstract
Discrete Gaussian sampling is an important operation at the core of many lattice-based cryptosystems, which presents significant challenges from an implementation standpoint. In particular, it is difficult to protect against side-channel attacks. Extensive research has gone into the problem of addressing timing side-channel attacks, and as result, constant-time discrete Gaussian sampling is now well-understood. However, few papers so far have attempted to achieve protection against stronger side-channel attacks like correlation power analysis via, e.g., masking, and those that have tend to suffer from underwhelming performance. Focusing on the case of discrete Gaussians with fixed center and standard deviation, the state-of-the-art approach to applying a masking countermeasure is to start from a constant-time cumulative distribution table-based (CDT-based) sampler, possibly with a search tree twist. Such a CDT-based sampler compares a uniform random value to each element of the CDT of the target distribution. Replacing these comparisons with a masked comparison circuit (typically based on a carry-save adder like Kogge-Stone) yields the desired, albeit costly, countermeasure. In this paper, we propose a very different approach to masked discrete Gaussian sampling. We start from a new rejection-based discrete Gaussian sampler, obtained by discretizing a sampler for the continuous normal distribution related to an algorithm of Marsaglia (1963). We show that our new sampler can be expressed elegantly in terms of uniform and geometric distributions, in a way that is surprisingly friendly to masking, particularly when using bitslicing. The resulting masked, t-probing secure gadget dramatically outperforms previous work. When applied to NIST candidate signature HAWK, we find it to need less than 5 masked AND gates per generated sample on a 32-bit architecture, and about 20 times fewer than the state-of-the-art, comparison tree-based masked sampler of Eid et al. (TCHES 2026). Furthermore, we show that while Eid et al.'s sampler can be sped up with significant tweaks (bitslicing, faster masked comparisons, etc.), the modified gadget still requires 4 to 5 times as many masked AND gates as our techniques.
Metadata
- Available format(s)
-
PDF
- Category
- Public-key cryptography
- Publication info
- A minor revision of an IACR publication in CRYPTO 2026
- Keywords
- Discrete Gaussian samplingMaskingSide-channel securityt-probing modelHAWK
- Contact author(s)
-
calvin abou-haidar @ protonmail com
t espitau @ gmail com
clement hoffmann @ hotmail fr
mehdi tibouchi @ normalesup org - History
- 2026-05-20: approved
- 2026-05-19: received
- See all versions
- Short URL
- https://ia.cr/2026/988
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2026/988,
author = {Calvin Abou Haidar and Thomas Espitau and Clément Hoffmann and Mehdi Tibouchi},
title = {Maskaglia: A New, Efficient Approach to Masked Discrete Gaussian Sampling},
howpublished = {Cryptology {ePrint} Archive, Paper 2026/988},
year = {2026},
url = {https://eprint.iacr.org/2026/988}
}