Sustained Space and Cumulative Complexity Trade-Offs for Data-Dependent Memory-Hard Functions
Abstract
Memory-hard functions (MHFs) are a useful cryptographic primitive which can be used to design egalitarian proof of work puzzles and to protect low entropy secrets like passwords against brute-force attackers. Intuitively, a memory-hard function is a function whose evaluation costs are dominated by memory costs even if the attacker uses specialized hardware (FPGAs/ASICs), and several cost metrics have been proposed to quantify this intuition. For example, space-time cost looks at the product of running time and the maximum space usage over the entire execution of an algorithm. Alwen and Serbinenko (STOC 2015) observed that the space-time cost of evaluating a function multiple times may not scale linearly in the number of instances being evaluated and introduced the stricter requirement that a memory-hard function has high cumulative memory complexity (CMC) to ensure that an attacker's amortized space-time costs remain large even if the attacker evaluates the function on multiple different inputs in parallel. Alwen et al. (EURO-CRYPT 2018) observed that the notion of CMC still gives the attacker undesirable flexibility in selecting space-time tradeoffs e.g., while the MHF Scrypt has maximal CMC Ω(N 2 ), an attacker could evaluate the function with constant O(1) memory in time O(N 2 ). Alwen et al. introduced an even stricter notion of Sustained Space complexity and designed an MHF which has s = Ω(N/ log N ) sustained complexity t = Ω(N ) i.e., any algorithm evaluating the function in the parallel random oracle model must have at least t = Ω(N ) steps where the memory usage is at least Ω(N/ log N ). In this work, we use dynamic pebbling games and dynamic graphs to explore tradeoffs between sustained space complexity and cumulative memory complexity for data-dependent memory-hard functions such as Argon2id and Scrypt. We design our own dynamic graph (dMHF) with the property that any dynamic pebbling strategy either (1) has Ω(N ) rounds with Ω(N ) space, or (2) has CMC Ω(N 3-)substantially larger than N 2 . For Argon2id we show that any dynamic pebbling strategy either(1) has Ω(N ) rounds with Ω(N 1-) space, or (2) has CMC ω(N 2 ). We also present a dynamic version of DRSample (Alwen et al. 2017) for which any dynamic pebbling strategy either (1) has Ω(N ) rounds with Ω(N/ log N ) space, or (2) has CMC Ω(N 3 / log N ).
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
1 top-tier paper has cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
Cited by top-tier papers1
Builds on1
Related papers
- Bandwidth-Hard Functions: Reductions and Lower BoundsJeremiah Blocki, Ling Ren, Samson ZhouCCS 2018 · 17 citations
- Trapdoor Memory-Hard FunctionsBenedikt Auerbach, Christoph U. Günther, Krzysztof PietrzakEUROCRYPT 2024 · 5 citations
- Egalitarian ComputingAlex Biryukov, Dmitry KhovratovichUSENIX Security 2016 · 26 citations
- The Impact of Reversibility on Parallel PebblingJeremiah Blocki, Blake Holman, Seunghoon LeeEUROCRYPT 2025 · 1 citation
- Equihash: Asymmetric Proof-of-Work Based on the Generalized Birthday ProblemAlex Biryukov, Dmitry KhovratovichNDSS 2016 · 110 citations
