Paper 2026/1982

Cryptanalysis of the Alternative Mod-2/Mod-3 Weak PRF

Augustin Bariant, Agence Nationale de la Sécurité des Systèmes d'Information, Paris, France
Christina Boura, Université Paris Cité, CNRS, IRIF, Paris, France
Baptiste Germon, Univ Rennes, Inria, CNRS, IRISA, Rennes, France
Rachelle Heim, Université Libre de Bruxelles, Bruxelles, Belgium
Charles Meyer-Hilfiger, Univ Rennes, Inria, CNRS, IRISA, Rennes, France
Tyge Tiessen, Technical University of Denmark, Kongens Lyngby, Denmark
Abstract

The alternative mod-$2$/mod-$3$ function is one of the most widely used weak PRF constructions in modern cryptographic protocols. Despite its practical importance, its security has received relatively limited attention, with the main cryptanalytic results consisting of two distinguishing attacks due respectively to Cheon et al. and Johansson et al. In this work, we revisit the cryptanalysis of this primitive by analyzing the output distribution of the weak PRF under fixed Hamming weights for both the secret key and the inputs. This refined analysis allows us to isolate and amplify statistical biases that were averaged out in previous works. Using this approach, we derive a new distinguishing attack with asymptotic data and time complexity $\mathcal O(2^{0.099n})$. We implemented the attack for the original parameter set $n=384$, thereby obtaining the first practical attack against this instance of the construction. We then introduce a generic technique, called the splitting strategy, which consists in partially fixing or guessing part of the secret key in order to amplify the biases while introducing an additional computational cost that can be efficiently handled using Fast Fourier Transform-like techniques. This leads to the currently best known attack against the construction, with asymptotic data, time, and memory complexities $\widetilde{\mathcal O}(2^{0.09n})$. This last technique also provides a useful time-memory trade-off for estimating the security of real-world constructions when the available data is bounded: we show that the weak PRF offers less than $128$-bit security for $n = 510$ when the data is limited to $2^{45}$. Finally, we revisit the attack of Johansson et al. and provide a corrected and refined analysis of the underlying bias, showing that the statistical behavior of the attack differs significantly once the Hamming weight of the secret key is taken into account. This new analysis explains phenomena previously observed experimentally but left unexplained. Thanks to this approach we are able to identify a large class of keys for which the attack performs much better asymptotically than anticipated by Johansson et al.

Metadata
Available format(s)
PDF
Category
Secret-key cryptography
Publication info
A major revision of an IACR publication in ASIACRYPT 2026
Keywords
weak PRFsalternative mod-2/mod-3 functionstatistical cryptanalysis
Contact author(s)
augustin bariant @ ssi gouv fr
christina boura @ irif fr
baptiste germon @ irisa fr
rachelle heim @ ulb be
charles meyer-hilfiger @ inria fr
tyti @ dtu dk
History
2026-09-13: approved
2026-09-11: received
See all versions
Short URL
https://ia.cr/2026/1982
License
Creative Commons Attribution-ShareAlike
CC BY-SA

BibTeX

@misc{cryptoeprint:2026/1982,
      author = {Augustin Bariant and Christina Boura and Baptiste Germon and Rachelle Heim and Charles Meyer-Hilfiger and Tyge Tiessen},
      title = {Cryptanalysis of the Alternative Mod-2/Mod-3 Weak {PRF}},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1982},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1982}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.