Paper 2020/1062

Quantum Search for Scaled Hash Function Preimages

Sergi Ramos-Calderer, Emanuele Bellini, José I. Latorre, Marc Manzano, and Victor Mateu

Abstract

We present the implementation of Grover's algorithm in a quantum simulator to perform a quantum search for preimages of two scaled hash functions, whose design only uses modular addition, word rotation, and bitwise exclusive or. Our implementation provides the means to assess with precision the scaling of the number of gates and depth of a full-fledged quantum circuit designed to find the preimages of a given hash digest. The detailed construction of the quantum oracle shows that the presence of AND gates, OR gates, shifts of bits and the reuse of the initial state along the computation, require extra quantum resources as compared with other hash functions based on modular additions, XOR gates and rotations. We also track the entanglement entropy present in the quantum register at every step along the computation, showing that it becomes maximal at the inner core of the first action of the quantum oracle, which implies that no classical simulation based on Tensor Networks would be of relevance. Finally, we show that strategies that suggest a shortcut based on sampling the quantum register after a few steps of Grover's algorithm can only provide some marginal practical advantage in terms of error mitigation.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint. MINOR revision.
Keywords
Quantum implementationGrover's algorithmSymmetric cryptographyhash functionpreimage
Contact author(s)
eemanuele bellini @ gmail com
History
2020-09-03: received
Short URL
https://ia.cr/2020/1062
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2020/1062,
      author = {Sergi Ramos-Calderer and Emanuele Bellini and José I.  Latorre and Marc Manzano and Victor Mateu},
      title = {Quantum Search for Scaled Hash Function Preimages},
      howpublished = {Cryptology {ePrint} Archive, Paper 2020/1062},
      year = {2020},
      url = {https://eprint.iacr.org/2020/1062}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.