{
  "id": "2016/183",
  "url": "https://opencryptology.org/2016/183",
  "original_url": "https://eprint.iacr.org/2016/183",
  "title": "There is Wisdom in Harnessing the Strengths of your Enemy: Customized Encoding to Thwart Side-Channel Attacks -- Extended Version --",
  "authors": [
    "Houssem Maghrebi",
    "Victor Servant",
    "Julien Bringer"
  ],
  "affiliations": null,
  "abstract": "Side-channel attacks are an important concern for the security of cryptographic algorithms. To counteract it, a recent line of research has investigated the use of software encoding functions such as dual-rail rather than the well known masking countermeasure. The core idea consists in encoding the sensitive data with a fixed Hamming weight value and perform all operations following this fashion. This new set of countermeasures applies to all devices that leak a function of the Hamming weight of the internal variables. However when the leakage model deviates from this idealized model, the claimed security guarantee vanishes.\nIn this work, we introduce a framework that aims at building customized encoding functions according to the precise leakage model based on stochastic profiling.\nWe specifically investigate how to take advantage of adversary's knowledge of the physical leakage to select the corresponding optimal encoding.\nOur solution has been evaluated within several security metrics, proving its efficiency against side-channel attacks in realistic scenarios. A concrete experimentation of our proposal to protect the PRESENT Sbox confirms its practicability.\nIn a realistic scenario, our new custom encoding achieves a hundredfold reduction in leakage compared to the dual-rail, although using the same code length.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“There is Wisdom in Harnessing the Strengths of your Enemy: Customized Encoding to Thwart Side-Channel Attacks -- Extended Version --” by Houssem Maghrebi, Victor Servant, Julien Bringer, Cryptology ePrint Archive, Paper 2016/183, https://eprint.iacr.org/2016/183. 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-02-23T16:28:06Z",
    "updated": "2016-02-23T16:28:06Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2016/183.pdf",
    "sha256": "adda1693560c6d63613130a5fd0ab76cf5b85f723a91cdf9a5fe0388755cf3ac",
    "size": 1833795,
    "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/183/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/183.pdf",
      "size": 1833795,
      "sha256": "adda1693560c6d63613130a5fd0ab76cf5b85f723a91cdf9a5fe0388755cf3ac",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260106040700id_/https://eprint.iacr.org/2016/183.pdf",
      "captured_at": "2026-01-06T04:07:00Z",
      "size": 1756232
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2016/183.pdf",
      "captured_at": "2019-02-25T17:24:56Z",
      "size": 1833795
    }
  ],
  "bibtex": "@misc{cryptoeprint:2016/183,\n      author = {Houssem Maghrebi and Victor Servant and Julien Bringer},\n      title = {There is Wisdom in Harnessing the Strengths of your Enemy: Customized Encoding to Thwart Side-Channel Attacks -- Extended Version --},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2016/183},\n      year = {2016},\n      url = {https://eprint.iacr.org/2016/183}\n}"
}
