{
  "id": "2014/956",
  "url": "https://opencryptology.org/2014/956",
  "original_url": "https://eprint.iacr.org/2014/956",
  "title": "Tamper Detection and Continuous Non-Malleable Codes",
  "authors": [
    "Zahra Jafargholi",
    "Daniel Wichs"
  ],
  "affiliations": null,
  "abstract": "We consider a public and keyless code $(\\Enc,\\Dec)$ which is used to encode a message $m$ and derive a codeword $c = \\Enc(m)$. The codeword can be adversarially tampered via a function $f \\in \\F$ from some tampering function family $\\F$, resulting in a tampered value $c' = f(c)$. We study the different types of security guarantees that can be achieved in this scenario for different families $\\F$ of tampering attacks.\n\nFirstly, we initiate the general study of tamper-detection codes, which must detect that tampering occurred and output $\\Dec(c') = \\bot$. We show that such codes exist for any family of functions $\\F$ over $n$ bit codewords, as long as  $|\\F| < 2^{2^n}$ is sufficiently smaller than the set of all possible functions, and the functions $f \\in \\F$ are further restricted in two ways: (1) they can only have a few fixed points $x$ such that $f(x)=x$, (2) they must have high entropy of $f(x)$ over a random $x$. Such codes can also be made efficient when $|\\F| = 2^{\\poly(n)}$. For example, $\\F$ can be the family of all low-degree polynomials excluding constant and identity polynomials. Such tamper-detection codes generalize the algebraic manipulation detection (AMD) codes of Cramer et al. (EUROCRYPT '08).\n\nNext, we revisit non-malleable codes, which were introduced by  Dziembowski, Pietrzak and Wichs (ICS '10) and require that $\\Dec(c')$ either decodes to  the original message $m$, or to some unrelated value (possibly $\\bot$) that doesn't provide any information about $m$.  We give a modular construction of non-malleable codes by combining tamper-detection codes and leakage-resilient codes. This gives an alternate proof of the existence of non-malleable codes with optimal rate for any family $\\F$ of size  $|\\F| < 2^{2^n}$, as well as  efficient constructions for families of size $|\\F| = 2^{\\poly(n)}$.\n\nFinally, we initiate the general study of continuous non-malleable codes, which provide a non-malleability guarantee against an attacker that can tamper a codeword multiple times.   We define several variants of the problem depending on:  (I) whether tampering is persistent and each successive attack modifies the codeword that has been modified by previous attacks, or whether tampering is non-persistent and is always applied to the original codeword, (II)  whether we can  self-destruct and stop the experiment if a tampered codeword is ever detected to be invalid or whether the attacker can always tamper more. In the case of persistent tampering and self-destruct (weakest case), we get a broad existence results, essentially matching what's known for standard non-malleable codes. In the case of non-persistent tampering and no self-destruct (strongest case), we must further restrict the tampering functions to have few fixed points and high entropy. The two intermediate cases correspond to requiring only one of the above two restrictions.\n\nThese results have applications in cryptography to related-key attack (RKA) security and to protecting devices against tampering attacks without requiring state or randomness.",
  "category": "Foundations",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Tamper Detection and Continuous Non-Malleable Codes” by Zahra Jafargholi, Daniel Wichs, Cryptology ePrint Archive, Paper 2014/956, https://eprint.iacr.org/2014/956. 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-11-25T20:36:10Z",
    "updated": "2015-11-06T12:02:37Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2014/956.pdf",
    "sha256": "5a92357252f1c1df84cac52a48006a1bab3bb71dbb2896872d8a8ad1938066a2",
    "size": 552352,
    "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/956/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/956.pdf",
      "size": 552352,
      "sha256": "5a92357252f1c1df84cac52a48006a1bab3bb71dbb2896872d8a8ad1938066a2",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2014/956/versions/20150318T091756Z.pdf",
      "captured_at": "2015-03-18T09:17:56Z",
      "label": "copy captured 2015-03-18",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20150318091756id_/http://eprint.iacr.org/2014/956.pdf",
      "size": 548028,
      "sha256": "75b0d8fd428154e81254191a628804d9f75c03e2481adec579befe5578e51287",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260222152835id_/https://eprint.iacr.org/2014/956.pdf",
      "captured_at": "2026-02-22T15:28:35Z",
      "size": 540504
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2014/956.pdf",
      "captured_at": "2019-02-25T16:55:32Z",
      "size": 552352
    }
  ],
  "bibtex": "@misc{cryptoeprint:2014/956,\n      author = {Zahra Jafargholi and Daniel Wichs},\n      title = {Tamper Detection and Continuous Non-Malleable Codes},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2014/956},\n      year = {2014},\n      url = {https://eprint.iacr.org/2014/956}\n}"
}
