Cryptology ePrint Archive: Report 2019/1357

Cryptanalysis of the Legendre PRF and generalizations

Ward Beullens and Tim Beyne and Aleksei Udovenko and Giuseppe Vitto

Abstract: The Legendre PRF 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 et al. at CCS 2016. Moreover, the Legendre PRF is being considered for usage in the Ethereum 2.0 blockchain.

This paper improves previous attacks on the Legendre PRF and its higher-degree variant due to Khovratovich by reducing the time complexity from $O(p\log{p}/M)$ to $O(p\log^2{p}/M^2)$ Legendre symbol evaluations when $M \le \sqrt[4]{p \log^2 p}$ 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.

Category / Keywords: secret-key cryptography / Cryptanalysis, Legendre PRF, MPC-friendly primitives, Collision attack

Original Publication (with minor differences): IACR-FSE-2020

Date: received 25 Nov 2019, last revised 30 Oct 2020

Contact author: ward beullens at esat kuleuven be,tim beyne@esat kuleuven be,giuseppe vitto@uni lu,aleksei@affine group

Available format(s): PDF | BibTeX Citation

Note: Add DOI of the published version, minor fixes in complexity estimations.

Version: 20201030:165821 (All versions of this report)

Short URL:

[ Cryptology ePrint archive ]