{
  "id": "2024/312",
  "url": "https://opencryptology.org/2024/312",
  "original_url": "https://eprint.iacr.org/2024/312",
  "title": "Trapdoor Memory-Hard Functions",
  "authors": [
    "Benedikt Auerbach",
    "Christoph U. Günther",
    "Krzysztof Pietrzak"
  ],
  "affiliations": null,
  "abstract": "Memory-hard functions (MHF) are functions whose evaluation provably requires a lot of memory. While MHFs are an unkeyed primitive, it is natural to consider the notion of trapdoor MHFs (TMHFs). A TMHF is like an MHF, but when sampling the public parameters one also samples a trapdoor which allows evaluating the function much cheaper.\n\nBiryukov and Perrin (Asiacrypt'17) were the first to consider TMHFs and put forth a candidate TMHF construction called Diodon that is based on the Scrypt MHF (Percival, BSDCan'09). To allow for a trapdoor, Scrypt's initial hash chain is replaced by a sequence of squares in a group of unknown order where the order of the group is the trapdoor. For a length $n$ sequence of squares and a group of order $N$, Diodon's cumulative memory complexity (CMC) is $O(n^2\\log N)$ without the trapdoor and $O(n \\log(n) \\log(N)^2)$ with knowledge of it.\n\nWhile Scrypt is proven to be optimally memory-hard in the random oracle model (Alwen et al., Eurocrypt'17), Diodon's memory-hardness has not been proven so far. In this work, we fill this gap by rigorously analyzing a specific instantiation of Diodon. We show that its CMC is lower bounded by $\\Omega(\\frac{n^2}{\\log n} \\log N)$ which almost matches the upper bound. Our proof is based Alwen et al.'s lower bound on Scrypt's CMC but requires non-trivial modifications due to the algebraic structure of Diodon. Most importantly, our analysis involves a more elaborate compression argument and a solvability criterion for certain systems of Diophantine equations.",
  "category": "Public-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Trapdoor Memory-Hard Functions” by Benedikt Auerbach, Christoph U. Günther, Krzysztof Pietrzak, Cryptology ePrint Archive, Paper 2024/312, https://eprint.iacr.org/2024/312. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-02-23T13:33:23Z",
    "updated": "2024-02-23T13:33:23Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/312.pdf",
    "sha256": "b8ab231b5bf2e6f7ae9ce67c1f3ffd198775539f51bef925500ff28aa455d631",
    "size": 738746,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/312/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/312.pdf",
      "size": 738746,
      "sha256": "b8ab231b5bf2e6f7ae9ce67c1f3ffd198775539f51bef925500ff28aa455d631",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/312.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 738746
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260309102445id_/https://eprint.iacr.org/2024/312.pdf",
      "captured_at": "2026-03-09T10:24:45Z",
      "size": 721876
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/312,\n      author = {Benedikt Auerbach and Christoph U. Günther and Krzysztof Pietrzak},\n      title = {Trapdoor Memory-Hard Functions},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/312},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/312}\n}"
}
