{
  "id": "scrypt",
  "name": "scrypt",
  "family_id": "scrypt",
  "description": "scrypt as specified in RFC 7914 (parameters N, r, p): PBKDF2-HMAC-SHA256 wrapped around ROMix, whose second loop reads a password-dependent table entry each step. Indexed results: a tight Omega(n^2 w) cumulative-memory-complexity lower bound in the parallel random-oracle model (no parallel / amortized time-memory tradeoff speedup) and a cache-timing side channel on the data-dependent ROMix indexing.",
  "status": "intact",
  "parameters": {
    "standard": "RFC 7914",
    "cost_parameters": "N (CPU/memory cost), r (block size), p (parallelization)",
    "core": "ROMix with BlockMix (Salsa20/8)",
    "addressing": "data-dependent",
    "wrapper": "PBKDF2-HMAC-SHA256"
  },
  "references": [
    {
      "title": "Stronger Key Derivation via Sequential Memory-Hard Functions",
      "url": "https://www.tarsnap.com/scrypt/scrypt.pdf",
      "authors": [
        "Colin Percival"
      ],
      "quote_location": "BSDCan 2009"
    },
    {
      "title": "The scrypt Password-Based Key Derivation Function (RFC 7914)",
      "url": "https://datatracker.ietf.org/doc/html/rfc7914",
      "authors": [
        "Colin Percival",
        "Simon Josefsson"
      ],
      "doi": "10.17487/RFC7914",
      "quote_location": "RFC 7914 (August 2016)"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "scrypt-alwen-2017-maximal-memory-hardness",
      "target_id": "scrypt",
      "title": "scrypt is maximally memory-hard: tight Omega(n^2 w) cumulative memory complexity",
      "goal": "security-evaluation",
      "attack_family": "memory-hardness-proof",
      "setting": "Proof in the parallel random-oracle model that any (parallel, amortized) evaluation of scrypt with n table entries of w bits has cumulative memory complexity Omega(n^2 w), matching the naive sequential algorithm and ruling out parallel or amortized time-memory tradeoff speedups",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2017-04-30",
      "authors": [
        "Joël Alwen",
        "Binyi Chen",
        "Krzysztof Pietrzak",
        "Leonid Reyzin",
        "Stefano Tessaro"
      ],
      "references": [
        {
          "title": "Scrypt is Maximally Memory-Hard",
          "url": "https://doi.org/10.1007/978-3-319-56617-7_2",
          "authors": [
            "Joël Alwen",
            "Binyi Chen",
            "Krzysztof Pietrzak",
            "Leonid Reyzin",
            "Stefano Tessaro"
          ],
          "eprint_id": "2016/989",
          "doi": "10.1007/978-3-319-56617-7_2",
          "quote_location": "EUROCRYPT 2017 (Best Paper) / ePrint 2016/989"
        },
        {
          "title": "The scrypt Password-Based Key Derivation Function (RFC 7914)",
          "url": "https://datatracker.ietf.org/doc/html/rfc7914",
          "authors": [
            "Colin Percival",
            "Simon Josefsson"
          ],
          "doi": "10.17487/RFC7914",
          "quote_location": "RFC 7914 (August 2016)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "Alwen–Chen–Pietrzak–Reyzin–Tessaro EUROCRYPT 2017 / ePrint 2016/989 (asymptotic Omega(n^2 w) CMC lower bound in the parallel ROM; no concrete cost)"
      },
      "notes": "A security proof, not an attack. gate_count_log2: 0 is the existing schema placeholder for a result with no concrete bit cost; the Omega(n^2 w) bound lives in the setting and estimator text. Date approximates the EUROCRYPT 2017 conference."
    },
    {
      "id": "scrypt-forler-2014-romix-cache-timing",
      "target_id": "scrypt",
      "title": "Cache-timing side channel on scrypt ROMix password-dependent table indexing",
      "goal": "password-recovery",
      "attack_family": "cache-timing-side-channel",
      "setting": "Cache-timing adversary co-located with the password hasher observes which ROMix table entries are accessed; because the indices depend on the password, the access pattern lets an attacker filter password candidates without paying the full memory cost",
      "claim_kind": "estimate",
      "track": "side_channel",
      "date": "2014-12-07",
      "authors": [
        "Christian Forler",
        "Stefan Lucks",
        "Jakob Wenzel"
      ],
      "references": [
        {
          "title": "Memory-Demanding Password Scrambling",
          "url": "https://doi.org/10.1007/978-3-662-45608-8_16",
          "authors": [
            "Christian Forler",
            "Stefan Lucks",
            "Jakob Wenzel"
          ],
          "eprint_id": "2013/525",
          "doi": "10.1007/978-3-662-45608-8_16",
          "quote_location": "ASIACRYPT 2014 / ePrint 2013/525"
        },
        {
          "title": "Stronger Key Derivation via Sequential Memory-Hard Functions",
          "url": "https://www.tarsnap.com/scrypt/scrypt.pdf",
          "authors": [
            "Colin Percival"
          ],
          "quote_location": "BSDCan 2009"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "Forler–Lucks–Wenzel ASIACRYPT 2014 / ePrint 2013/525 (qualitative cache-timing leakage of data-dependent ROMix; no concrete cost)"
      },
      "notes": "Implementation-level side channel; it does not weaken scrypt's memory-hardness against an attacker without access-pattern leakage. It motivated data-independent designs (Catena, Argon2i). gate_count_log2: 0 is the existing schema placeholder for a result with no concrete bit cost. Date approximates the ASIACRYPT 2014 conference."
    },
    {
      "id": "scrypt-paper-6ceb785b21a95031d208252b",
      "target_id": "scrypt",
      "title": "Scrypt Is Maximally Memory-Hard",
      "goal": "security_bound",
      "attack_family": "memory-hardness-proof",
      "setting": "Proves that scrypt achieves maximal memory-hardness.",
      "claim_kind": "estimate",
      "track": "mathematical",
      "ai_assisted": false,
      "date": "2017-01-01",
      "authors": [
        "Joël Alwen",
        "Binyi Chen",
        "Krzysztof Pietrzak",
        "Leonid Reyzin",
        "Stefano Tessaro"
      ],
      "references": [
        {
          "title": "Scrypt Is Maximally Memory-Hard",
          "url": "https://doi.org/10.1007/978-3-319-56617-7_2",
          "authors": [
            "Joël Alwen",
            "Binyi Chen",
            "Krzysztof Pietrzak",
            "Leonid Reyzin",
            "Stefano Tessaro"
          ],
          "doi": "10.1007/978-3-319-56617-7_2"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "Abstract-only extraction (unverified)"
      },
      "notes": "Extracted from title and abstract only; year-level date approximation. Proves that scrypt achieves maximal memory-hardness."
    }
  ],
  "frontiers": [
    {
      "id": "scrypt-cache-timing-resistant-memory-hardness",
      "target_id": "scrypt",
      "title": "Combining scrypt-level memory-hardness with side-channel resistance",
      "description": "scrypt attains optimal Omega(n^2 w) cumulative memory complexity only through password-dependent memory access, which leaks via cache timing; whether a function can match that bound with fully data-independent access, or how much of the gap hybrid designs such as Argon2id close in practice, remains open.",
      "references": [
        {
          "title": "Scrypt is Maximally Memory-Hard",
          "url": "https://doi.org/10.1007/978-3-319-56617-7_2",
          "authors": [
            "Joël Alwen",
            "Binyi Chen",
            "Krzysztof Pietrzak",
            "Leonid Reyzin",
            "Stefano Tessaro"
          ],
          "eprint_id": "2016/989",
          "doi": "10.1007/978-3-319-56617-7_2",
          "quote_location": "EUROCRYPT 2017 (Best Paper) / ePrint 2016/989"
        },
        {
          "title": "Memory-Demanding Password Scrambling",
          "url": "https://doi.org/10.1007/978-3-662-45608-8_16",
          "authors": [
            "Christian Forler",
            "Stefan Lucks",
            "Jakob Wenzel"
          ],
          "eprint_id": "2013/525",
          "doi": "10.1007/978-3-662-45608-8_16",
          "quote_location": "ASIACRYPT 2014 / ePrint 2013/525"
        }
      ]
    }
  ],
  "dead_ends": []
}
