Paper 2025/1299 Original: eprint.iacr.org/2025/1299 ↗

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

Décio Luiz Gazzoni Filho
Gora Adj
Slim Bettaieb
Alessandro Budroni
Jorge Chávez-Saab
Francisco Rodríguez-Henríquez
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
Preprint.
History
2025-10-14: last updated
2025-07-16: published
Short URL
https://ia.cr/2025/1299
License
https://creativecommons.org/licenses/by/4.0/

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, this archive does not use cookies or embedded third party content.