{
  "id": "2014/417",
  "url": "https://opencryptology.org/2014/417",
  "original_url": "https://eprint.iacr.org/2014/417",
  "title": "Using Random Error Correcting Codes in Near-Collision Attacks on Generic Hash-Functions",
  "authors": [
    "Inna Polak",
    "Adi Shamir"
  ],
  "affiliations": null,
  "abstract": "In this paper we consider the problem of finding a near-collision\nwith Hamming distance bounded by $r$ in a generic cryptographic hash\nfunction $h$ whose outputs can be modeled as random $n$-bit strings.\nIn 2011, Lamberger suggested a modified version of Pollard's rho method\nwhich computes a chain of values by alternately applying the hash\nfunction $h$ and an error correcting code $e$ to a random starting\nvalue $x_{0}$ until it cycles. This turns some (but not all) of the\nnear-collisions in $h$ into full collisions in $f=e\\circ h$, which\nare easy to find. In 2012, Leurent improved Lamberger's memoryless\nalgorithm by using any available amount of memory to store the endpoints\nof multiple chains of $f$ values, and using Van Oorschot and Wiener's\nalgorithm to find many full collisions in $f$, hoping that one of\nthem will be an $r$-near-collision in $h$. This is currently the\nbest known time/memory tradeoff algorithm for the problem.\n\nThe efficiency of both Lamberger's and Leurent's algorithms depend\non the quality of their error correction code. Since they have to\napply error correction to \\emph{any} bit string, they want to use\nperfect codes, but all the known constructions of such codes can correct\nonly $1$ or $3$ errors. To deal with a larger number of errors,\nthey recommend using a concatenation of many Hamming codes, each capable\nof correcting a single error in a particular subset of the bits, along\nwith some projections. As we show in this paper, this is a suboptimal\nchoice, which can be considerably improved by using randomly chosen\nlinear codes instead of Hamming codes and storing a precomputed lookup\ntable to make the error correction process efficient. We show both\ntheoretically and experimentally that this is a better way to utilize\nthe available memory, instead of devoting all the memory to the storage\nof chain endpoints. Compared to Leurent's algorithm, we demonstrate\nan improvement ratio which grows with the size of the problem. In\nparticular, we experimentally verified an improvement ratio of about\n$3$ in a small example with $n=160$ and $r=33$ which we implemented\non a single PC, and mathematically predicted an improvement ratio\nof about $730$ in a large example with $n=1024$ and $r=100$, using\n$2^{40}$ memory.",
  "category": null,
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Using Random Error Correcting Codes in Near-Collision Attacks on Generic Hash-Functions” by Inna Polak, Adi Shamir, Cryptology ePrint Archive, Paper 2014/417, https://eprint.iacr.org/2014/417. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2014-06-05T20:37:55Z",
    "updated": "2014-06-05T20:37:55Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2014/417.pdf",
    "sha256": "f445f48959ceb73d3feca8d8edea792c535dc76071285b1a4d78c38adf1ff586",
    "size": 359712,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:55:32Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2014/417/versions/20190225T165532Z.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/417.pdf",
      "size": 359712,
      "sha256": "f445f48959ceb73d3feca8d8edea792c535dc76071285b1a4d78c38adf1ff586",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20230528222959id_/https://eprint.iacr.org/2014/417.pdf",
      "captured_at": "2023-05-28T22:29:59Z",
      "size": 318977
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/417.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "size": 359712
    }
  ],
  "bibtex": "@misc{cryptoeprint:2014/417,\n      author = {Inna Polak and Adi Shamir},\n      title = {Using Random Error Correcting Codes in Near-Collision Attacks on Generic Hash-Functions},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2014/417},\n      year = {2014},\n      url = {https://eprint.iacr.org/2014/417}\n}"
}
