Paper 2025/1299

Sota Voce: Low-Noise Sampling of Sparse Fixed-Weight Vectors

Décio Luiz Gazzoni Filho, Department of Electrical Engineering, State University of Londrina, Londrina, Brazil, Instituto de Computação, Universidade Estadual de Campinas (UNICAMP), Campinas, Brazil
Gora Adj, Cryptography Research Centre, Technology Innovation Institute, Abu Dhabi, UAE
Slim Bettaieb, Cryptography Research Centre, Technology Innovation Institute, Abu Dhabi, UAE
Alessandro Budroni, Cryptography Research Centre, Technology Innovation Institute, Abu Dhabi, UAE
Jorge Chávez-Saab, Cryptography Research Centre, Technology Innovation Institute, Abu Dhabi, UAE
Francisco Rodríguez-Henríquez, Cryptography Research Centre, Technology Innovation Institute, Abu Dhabi, UAE
Abstract

Many post-quantum cryptosystems require generating an $n$-bit binary vector with a prescribed Hamming weight $\omega$, a process known as \emph{fixed-weight sampling}. When $\omega = O(n)$, we call this \emph{dense} fixed-weight sampling, which commonly appears in lattice-based cryptosystems, like those in the NTRU family. In contrast, code-based cryptosystems typically use \emph{sparse} fixed-weight sampling with $\omega = o(n)$ (e.g., $O(\sqrt{n}$). Sparse fixed-weight sampling generally involves three constant-time steps to keep the sampled vector secret: 1. sample $\omega$ nearly uniform random integers from a series of decreasing intervals; 2. map these integers into a set of $\omega$ distinct indices in $[0, n)$, called the \emph{support}; 3. generate a binary $n$-bit vector with bits set only at the support indices. Remarkably, some of the core algorithms employed in fixed-weight sampling date back to nearly a century, yet developing efficient and secure techniques remains essential for modern post-quantum cryptographic applications. In this paper, we present novel algorithms for steps two and three of the fixed-weight sampling process. We demonstrate their practical applicability by replacing the current fixed-weight sampling routine in the HQC post-quantum key exchange mechanism, recently selected for NIST standardization. We rigorously prove that our procedures are sound, secure, and introduce little to no bias. Our implementation of the proposed algorithms accelerates step 2 by up to $2.9\times$ and step 3 by up to $5.8\times$ compared to an optimized version of the fixed-weight sampler currently used in HQC. Since fixed-weight sampling constitutes a significant portion of HQC’s execution time, these speedups translate into protocol-level improvements of up to $1.37\times$, $1.28\times$ and $1.21\times$ for key generation, encapsulation and decapsulation, respectively.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Published by the IACR in TCHES 2026
Keywords
Fixed-weight samplingHQCSorting networksConstant-time implementation
Contact author(s)
decio gazzoni @ ic unicamp br
gora adj @ tii ae
slim bettaieb @ tii ae
alessandro budroni @ tii ae
jorge saab @ tii ae
francisco rodriguez @ tii ae
History
2025-10-14: revised
2025-07-16: received
See all versions
Short URL
https://ia.cr/2025/1299
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/1299,
      author = {Décio Luiz Gazzoni Filho and Gora Adj and Slim Bettaieb and Alessandro Budroni and Jorge Chávez-Saab and Francisco Rodríguez-Henríquez},
      title = {Sota Voce: Low-Noise Sampling of Sparse Fixed-Weight Vectors},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1299},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1299}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.