{
  "id": "2016/264",
  "url": "https://opencryptology.org/2016/264",
  "original_url": "https://eprint.iacr.org/2016/264",
  "title": "How Fast Can Higher-Order Masking Be in Software?",
  "authors": [
    "Dahmun Goudarzi",
    "Matthieu Rivain"
  ],
  "affiliations": null,
  "abstract": "It is widely accepted that higher-order masking is a sound countermeasure to protect implementations of block ciphers against side-channel attacks. The main issue while designing such a countermeasure is to deal with the nonlinear parts of the cipher \\textit{i.e.} the so-called s-boxes. The prevailing approach to tackle this issue consists in applying the Ishai-Sahai-Wagner (ISW) scheme from CRYPTO 2003 to some polynomial representation of the s-box. Several efficient constructions have been proposed that follow this approach, but higher-order masking is still considered as a costly (impractical) countermeasure. In this paper, we investigate efficient higher-order masking techniques by conducting a case study on ARM architectures (the most widespread architecture in embedded systems). We follow a bottom-up approach by first investigating the implementation of the base field multiplication at the assembly level. Then we describe optimized low-level implementations of the ISW scheme and its variant (CPRR) due to Coron \\textit{et al.} (FSE 2013). Finally we present improved state-of-the-art methods with custom parameters and various implementation-level optimizations. We also investigate an alternative to polynomials methods which is based on bitslicing at the s-box level. We describe new masked bitslice implementations of the AES and PRESENT ciphers. These implementations happen to be significantly faster than (optimized) state-of-the-art polynomial methods. In particular, our bitslice AES masked at order 10 runs in $0.48$ megacycles, which makes $8$ milliseconds in presence of a $60$ MHz clock frequency.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“How Fast Can Higher-Order Masking Be in Software?” by Dahmun Goudarzi, Matthieu Rivain, Cryptology ePrint Archive, Paper 2016/264, https://eprint.iacr.org/2016/264. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2016-03-08T20:16:41Z",
    "updated": "2016-03-08T20:16:41Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/264.pdf",
    "sha256": "b35d74402f359da255f27ad6c85f9ad8e3e305b659fc34285fe62af5c1f54bbc",
    "size": 517826,
    "source": "github-mirror",
    "source_date": "2019-02-25T17:24:56Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2016/264/versions/20190225T172456Z.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/264.pdf",
      "size": 517826,
      "sha256": "b35d74402f359da255f27ad6c85f9ad8e3e305b659fc34285fe62af5c1f54bbc",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260106171244id_/https://eprint.iacr.org/2016/264.pdf",
      "captured_at": "2026-01-06T17:12:44Z",
      "size": 513771
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/264.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 517826
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/264,\n      author = {Dahmun Goudarzi and Matthieu Rivain},\n      title = {How Fast Can Higher-Order Masking Be in Software?},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/264},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/264}\n}"
}
