{
  "id": "2015/070",
  "url": "https://opencryptology.org/2015/070",
  "original_url": "https://eprint.iacr.org/2015/070",
  "title": "The Sum Can Be Weaker Than Each Part",
  "authors": [
    "Gaëtan Leurent",
    "Lei Wang"
  ],
  "affiliations": null,
  "abstract": "In this paper we study the security of summing the outputs of two\nindependent hash functions, in an effort to increase the security of the\nresulting design, or to hedge against the failure of one of the hash\nfunctions.  The exclusive-or (XOR) combiner H1(M)+H2(M) is one of the\ntwo most classical combiners, together with the concatenation combiner\nH1(M)||H2(M).  While the security of the concatenation of two hash\nfunctions is well understood since Joux's seminal work on\nmulticollisions, the security of the sum of two hash functions has been\nmuch less studied.\n\nThe XOR combiner is well known as a good PRF and MAC combiner, and is\nused in practice in TLS versions 1.0 and 1.1.  In a hash function\nsetting, Hoch and Shamir have shown that if the compression functions\nare modeled as random oracles, or even weak random oracles (i.e. they\ncan easily be inverted -- in particular H1 and H2 offer no security),\nH1+H2 is indifferentiable from a random oracle up to the birthday bound.\n\nIn this work, we focus on the preimage resistance of the sum of two\nnarrow-pipe n-bit hash functions, following the Merkle-Damgård or HAIFA\nstructure (the internal state size and the output size are both n bits).\nWe show a rather surprising result: the sum of two such hash functions,\ne.g. SHA-512+Whirlpool, can never provide n-bit security for preimage\nresistance.  More precisely, we present a generic preimage attack with a\ncomplexity of O(2^5n/6).  While it is already known that the XOR\ncombiner is not preserving for preimage resistance (i.e. there might be\nsome instantiations where the hash functions are secure but the sum is\nnot), our result is much stronger: for any narrow-pipe functions, the\nsum is not preimage resistant.\n\nBesides, we also provide concrete preimage attacks on the XOR combiner\n(and the concatenation combiner) when one or both of the compression\nfunctions are weak; this complements Hoch and Shamir's proof by showing\nits tightness for preimage resistance.\n\nOf independent interests, one of our main technical contributions is a\nnovel structure to control simultaneously the behavior of independent\nhash computations which share the same input message.  We hope that\nbreaking the pairwise relationship between their internal states will\nhave applications in related settings.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“The Sum Can Be Weaker Than Each Part” by Gaëtan Leurent, Lei Wang, Cryptology ePrint Archive, Paper 2015/070, https://eprint.iacr.org/2015/070. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2015-02-10T05:02:50Z",
    "updated": "2015-02-10T05:02:50Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2015/070.pdf",
    "sha256": "86c6ff20f4bf7a044845b64fb63552ad8fe759260cf3af5f16c338a8ad279401",
    "size": 429232,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:07:53Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2015/070/versions/20190225T170753Z.pdf",
      "captured_at": "2019-02-25T17:07:53Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2015/070.pdf",
      "size": 429232,
      "sha256": "86c6ff20f4bf7a044845b64fb63552ad8fe759260cf3af5f16c338a8ad279401",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260222033003id_/https://eprint.iacr.org/2015/070.pdf",
      "captured_at": "2026-02-22T03:30:03Z",
      "size": 419434
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2015/070.pdf",
      "captured_at": "2019-02-25T17:07:53Z",
      "size": 429232
    }
  ],
  "bibtex": "@misc{cryptoeprint:2015/070,\n      author = {Gaëtan Leurent and Lei Wang},\n      title = {The Sum Can Be Weaker Than Each Part},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2015/070},\n      year = {2015},\n      url = {https://eprint.iacr.org/2015/070}\n}"
}
