TY - JOUR AU - Beullens, Ward AU - Beyne, Tim AU - Udovenko, Aleksei AU - Vitto, Giuseppe PY - 2020/05/07 Y2 - 2024/03/28 TI - Cryptanalysis of the Legendre PRF and Generalizations JF - IACR Transactions on Symmetric Cryptology JA - ToSC VL - 2020 IS - 1 SE - Articles DO - 10.13154/tosc.v2020.i1.313-330 UR - https://tosc.iacr.org/index.php/ToSC/article/view/8567 SP - 313-330 AB - <p>The <em>Legendre PRF</em> relies on the conjectured pseudorandomness properties of the Legendre symbol with a hidden shift. Originally proposed as a PRG by Damgård at CRYPTO 1988, it was recently suggested as an efficient PRF for multiparty computation purposes by Grassi <em>et al.</em> at CCS 2016. Moreover, the Legendre PRF is being considered for usage in the Ethereum 2.0 blockchain.<br>This paper improves previous attacks on the Legendre PRF and its higher-degree variant due to Khovratovich by reducing the time complexity from <em>O</em>(&lt; (<em>p</em> log <em>p</em>/<em>M</em>) to <em>O</em>(<em>p</em> log<sup>2</sup> <em>p</em>/<em>M</em><sup>2</sup>) Legendre symbol evaluations when <em>M</em> ≤ <sup>4</sup>√ <em>p</em> log<sup>2</sup> <em>p</em> queries are available. The practical relevance of our improved attack is demonstrated by breaking three concrete instances of the PRF proposed by the Ethereum foundation. Furthermore, we generalize our attack in a nontrivial way to the higher-degree variant of the Legendre PRF and we point out a large class of weak keys for this construction. Lastly, we provide the first security analysis of two additional generalizations of the Legendre PRF originally proposed by Damgård in the PRG setting, namely the Jacobi PRF and the power residue PRF.</p> ER -