{
  "id": "2021/1521",
  "url": "https://opencryptology.org/2021/1521",
  "original_url": "https://eprint.iacr.org/2021/1521",
  "title": "Security evaluation against side-channel analysis at compilation time",
  "authors": [
    "Nicolas Bruneau",
    "Charles Christen",
    "Jean-Luc Danger",
    "Adrien Facon",
    "Sylvain Guilley"
  ],
  "affiliations": null,
  "abstract": "Masking countermeasure is implemented to thwart side-channel attacks.\nThe maturity of high-order masking schemes has reached the level where the concepts are sound and proven.\nFor instance, Rivain and Prouff proposed a full-fledged AES at CHES 2010.\nSome non-trivial fixes regarding refresh functions were needed though.\nNow, industry is adopting such solutions, and for the sake of both quality and certification requirements,\nmasked cryptographic code shall be checked for correctness using the same model as that of the the theoretical protection rationale (for instance the probing leakage model).\n\nSeminal work has been initiated by Barthe et al. at EUROCRYPT 2015 for automated verification at higher orders on concrete implementations.\nIn this paper, we build on this work to actually perform verification from within a compiler,\nso as to enable timely feedback to the developer.\nPrecisely, our methodology enables to provide the actual security order of the code at the intermediate representation (IR) level,\nthereby identifying possible flaws (owing either to source code errors or to compiler optimizations).\nSecond, our methodology allows for an exploitability analysis of the analysed IR code.\nIn this respect, we formally handle all the symbolic expressions in the static single assignment (SSA) representation to build the optimal distinguisher function.\nThis enables to evaluate the most powerful attack,\nwhich is not only function of the masking order $d$, but also on the number of leaking samples and of the expressions\n(e.g., linear vs non-linear leakages).\n\nThis scheme allows to evaluate the correctness of a masked cryptographic code,\nand also its actual security in terms of number of traces in a given deployment context (characterized by a leakage model of the target CPU and the signal-to-noise ratio of the platform).",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Security evaluation against side-channel analysis at compilation time” by Nicolas Bruneau, Charles Christen, Jean-Luc Danger, Adrien Facon, Sylvain Guilley, Cryptology ePrint Archive, Paper 2021/1521, https://eprint.iacr.org/2021/1521. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-11-22T11:24:31Z",
    "updated": "2021-11-22T11:24:31Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1521.pdf",
    "sha256": "f9257c30569f6731a92b53ba16da207c68973e860318aea4f0199b6d8791315e",
    "size": 981634,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/1521/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1521.pdf",
      "size": 981634,
      "sha256": "f9257c30569f6731a92b53ba16da207c68973e860318aea4f0199b6d8791315e",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260103024337id_/https://eprint.iacr.org/2021/1521.pdf",
      "captured_at": "2026-01-03T02:43:37Z",
      "size": 982561
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1521.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 981634
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1521,\n      author = {Nicolas Bruneau and Charles Christen and Jean-Luc Danger and Adrien Facon and Sylvain Guilley},\n      title = {Security evaluation against side-channel analysis at compilation time},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1521},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1521}\n}"
}
