{
  "id": "2012/175",
  "url": "https://opencryptology.org/2012/175",
  "original_url": "https://eprint.iacr.org/2012/175",
  "title": "Optimal First-Order Masking with Linear and Non-Linear Bijections",
  "authors": [
    "Houssem MAGHREBI",
    "Claude CARLET",
    "Sylvain GUILLEY",
    "Jean-Luc DANGER"
  ],
  "affiliations": null,
  "abstract": "Hardware devices can be protected against side-channel attacks by introducing one random mask per sensitive variable.\nThe computation throughout is unaltered if the shares (masked variable and mask) are processed concomitantly, in two distinct registers.\nNonetheless, this setup can be attacked by a zero-offset second-order CPA attack.\nThe countermeasure can be improved by manipulating the mask through a bijection $F$,\naimed at reducing the dependency between the shares.\nThus $d$th-order zero-offset attacks, that consist in applying CPA on the $d$th power of the centered side-channel traces,\ncan be thwarted for $d \\geq 2$ at no extra cost.\nWe denote by $n$ the size in bits of the shares and call $F$ the transformation function,\nthat is a bijection of $\\mathbb{F}_2^n$.\nIn this paper, we explore the functions $F$ that thwart zero-offset HO-CPA of maximal order $d$.\nWe mathematically demonstrate that optimal choices for $F$ relate to optimal binary codes (in the sense of communication theory).\nFirst, we exhibit optimal linear $F$ functions.\nSecond, we note that for values of $n$ for which non-linear codes exist with better parameters than linear ones.\nThese results are exemplified in the case $n=8$, the optimal $F$ can be identified:\nit is derived from the optimal rate~$1/2$ binary code of size $2n$, namely the Nordstrom-Robinson $(16, 256, 6)$ code.\nThis example provides explicitly with the optimal protection that limits to one mask of byte-oriented algorithms such as AES or AES-based SHA-3 candidates.\nIt protects against all zero-offset HO-CPA attacks of order $d \\leq 5$.\nEventually, the countermeasure is shown to be resilient to imperfect leakage models.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Optimal First-Order Masking with Linear and Non-Linear Bijections” by Houssem MAGHREBI, Claude CARLET, Sylvain GUILLEY, Jean-Luc DANGER, Cryptology ePrint Archive, Paper 2012/175, https://eprint.iacr.org/2012/175. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2012-04-11T15:58:15Z",
    "updated": "2012-04-11T15:58:15Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2012/175.pdf",
    "sha256": "6942e2ae770789a12563ddc1eec886ad90a088cdcf95fe3027245cb799398fc0",
    "size": 840425,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:37:15Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2012/175/versions/20190225T163715Z.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/175.pdf",
      "size": 840425,
      "sha256": "6942e2ae770789a12563ddc1eec886ad90a088cdcf95fe3027245cb799398fc0",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260227145650id_/https://eprint.iacr.org/2012/175.pdf",
      "captured_at": "2026-02-27T14:56:50Z",
      "size": 780878
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/175.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "size": 840425
    }
  ],
  "bibtex": "@misc{cryptoeprint:2012/175,\n      author = {Houssem MAGHREBI and Claude CARLET and Sylvain GUILLEY and Jean-Luc DANGER},\n      title = {Optimal First-Order Masking with Linear and Non-Linear Bijections},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2012/175},\n      year = {2012},\n      url = {https://eprint.iacr.org/2012/175}\n}"
}
