{
  "id": "2017/345",
  "url": "https://opencryptology.org/2017/345",
  "original_url": "https://eprint.iacr.org/2017/345",
  "title": "Mind the Gap: Towards Secure 1st-order Masking in Software",
  "authors": [
    "Kostas Papagiannopoulos",
    "Nikita Veshchikov"
  ],
  "affiliations": null,
  "abstract": "Cryptographic implementations are vulnerable to side-channel\nanalysis. Implementors often opt for masking countermeasures to protect against these types of attacks. Masking countermeasures can ensure theoretical protection against value-based leakages. However, the practical effectiveness of masking is often halted by physical effects such as glitches couplings and distance-based leakages, which violate the independent leakage assumption (ILA) and result in security order reductions. This paper aims to address this gap between masking theory and practice in the following threefold manner. First, we perform an in-depth investigation of the\ndevice-specific effects that invalidate ILA in the AVR  microcontroller ATMega163. Second, we provide an automated tool, capable of detecting ILA violations in AVR assembly code. Last, we craft the first (to our knowledge) \"hardened\" 1st-order ISW-based, masked Sbox implementation, which is capable of resisting 1st-order, univariate side-channel attacks. Enforcing the ILA in the masked RECTANGLE Sbox requires 1319 clock cycles, i.e. a 15-fold increase compared to a naive 1st-order ISW-based implementation.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Mind the Gap: Towards Secure 1st-order Masking in Software” by Kostas Papagiannopoulos, Nikita Veshchikov, Cryptology ePrint Archive, Paper 2017/345, https://eprint.iacr.org/2017/345. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2017-04-21T21:50:40Z",
    "updated": "2017-04-21T21:50:40Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2017/345.pdf",
    "sha256": "789d2411a76c079339a6e30b2edbd9d89e919b39b77706c20c52a062a5793e2c",
    "size": 5242880,
    "source": "wayback",
    "source_date": "2025-04-29T10:50:51Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2017/345/versions/20250429T105051Z.pdf",
      "captured_at": "2025-04-29T10:50:51Z",
      "label": "copy captured 2025-04-29",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250429105051id_/https://eprint.iacr.org/2017/345.pdf",
      "size": 5242880,
      "sha256": "789d2411a76c079339a6e30b2edbd9d89e919b39b77706c20c52a062a5793e2c",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2017/345/versions/20190225T174111Z.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/345.pdf",
      "size": 5662972,
      "sha256": "f6e51d7aba974c24234b20bb9de7b69fe809743463f56fbe81cfd8cd79fd78b3",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260429085820id_/https://eprint.iacr.org/2017/345.pdf",
      "captured_at": "2026-04-29T08:58:20Z",
      "size": 4667585
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2017/345.pdf",
      "captured_at": "2019-02-25T17:41:11Z",
      "size": 5662972
    }
  ],
  "bibtex": "@misc{cryptoeprint:2017/345,\n      author = {Kostas Papagiannopoulos and Nikita Veshchikov},\n      title = {Mind the Gap: Towards Secure 1st-order Masking in Software},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2017/345},\n      year = {2017},\n      url = {https://eprint.iacr.org/2017/345}\n}"
}
