Paper 2017/603

Cryptanalytic Time-Memory Tradeoff for Password Hashing Schemes

Donghoon Chang, Arpan Jati, Sweta Mishra, and Somitra Kumar Sanadhya

Abstract

A cryptanalytic technique known as time-memory tradeoff (TMTO) was proposed by Hellman for finding the secret key of a block cipher. This technique allows sharing the effort of key search between the two extremes of exhaustively enumerating all keys versus listing all possible ciphertext mappings produced by a given plaintext (i.e. table lookups). The TMTO technique has also been used as an effective cryptanalytic approach for password hashing schemes (PHS). Increasing threat of password leakage from compromised password hashes demands a resource consuming algorithm to prevent the precomputation of the password hashes. A class of password hashing designs provide such a defense against TMTO attack by ensuring that any reduction in the memory leads to exponential increase in runtime. These are called \textit{Memory hard} designs. However, it is generally difficult to evaluate the ``memory hardness" of a given PHS design.\\ In this work, we present a simple technique to analyze TMTO for any password hashing schemes which can be represented as a directed acyclic graph (DAG). The nodes of the DAG correspond to the storage required by the algorithm and the edges correspond to the flow of the execution. Our proposed technique provides expected run-times at varied levels of available storage for the DAG. Although our technique is generic, we show its efficacy by applying it on three designs from the ``Password Hashing Competition" (PHC) - Argon2i (the PHC winner), Catena and Rig. Our analysis shows that Argon2i fails to maintain the claimed memory hardness. In a recent work Corrigan-Gibbs et al. indeed showed an attack highlighting the weak memory hardening of Argon2i. We also analyze these PHS for performance under various settings of time and memory complexities.

Metadata
Available format(s)
PDF
Publication info
Preprint. MINOR revision.
Keywords
Time-Memory tradeoffpasswordhashinggraph traversalbit-reversal graphdouble butterfly graph
Contact author(s)
swetam @ iiitd ac in
History
2017-06-23: received
Short URL
https://ia.cr/2017/603
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2017/603,
      author = {Donghoon Chang and Arpan Jati and Sweta Mishra and Somitra Kumar Sanadhya},
      title = {Cryptanalytic Time-Memory Tradeoff for Password Hashing Schemes},
      howpublished = {Cryptology ePrint Archive, Paper 2017/603},
      year = {2017},
      note = {\url{https://eprint.iacr.org/2017/603}},
      url = {https://eprint.iacr.org/2017/603}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.