{
  "id": "2021/1181",
  "url": "https://opencryptology.org/2021/1181",
  "original_url": "https://eprint.iacr.org/2021/1181",
  "title": "Rosita++: Automatic Higher-Order Leakage Elimination from Cryptographic Code",
  "authors": [
    "Madura A. Shelton",
    "Łukasz Chmielewski",
    "Niels Samwel",
    "Markus Wagner",
    "Lejla Batina",
    "Yuval Yarom"
  ],
  "affiliations": null,
  "abstract": "Side-channel attacks are a major threat to the security of cryptographic implementations, particularly for small devices that are under the physical control of the adversary. While several strategies for protecting against side-channel attacks exist, these often fail in practice due to unintended interactions between values deep within the CPU. To detect and protect from side-channel attacks, several automated tools have recently been proposed; one of their common limitations is that they only support first-order leakage.\n\nIn this work, we present , the first automated tool for detecting and eliminating higher-order leakage from cryptographic implementations. Rosita++ proposes statistical and software-based tools to allow high-performance higher-order leakage detection. It then uses the code rewrite engine of Rosita (Shelton et al. NDSS 2021) to eliminate detected leakage. For the sake of practicality we evaluate Rosita++ against second and third order leakage, but our framework is not restricted to only these orders.\n\nWe evaluate Rosita++ against second-order leakage with three-share implementations of two ciphers, PRESENT and Xoodoo, and with the second-order Boolean-to-arithmetic masking, a core building block of masked implementations of many cryptographic primitives, including SHA-2, ChaCha and Blake. We show effective second-order leakage elimination at a performance cost of 36% for Xoodoo, 189% for PRESENT, and 29% for the Boolean-to-arithmetic masking. For third-order analysis, we evaluate Rosita++ against the third-order leakage using a four-share synthetic example that corresponds to typical four-share processing. Rosita++ correctly identified this leakage and applied code fixes.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Rosita++: Automatic Higher-Order Leakage Elimination from Cryptographic Code” by Madura A. Shelton, Łukasz Chmielewski, Niels Samwel, Markus Wagner, Lejla Batina, Yuval Yarom, Cryptology ePrint Archive, Paper 2021/1181, https://eprint.iacr.org/2021/1181. 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-09-14T18:05:43Z",
    "updated": "2021-09-14T18:05:43Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1181.pdf",
    "sha256": "d91d7c2ac97bc1a91797d464c5508c38ecf3ded1033b61986d945ed00937738b",
    "size": 29397390,
    "source": "wayback",
    "source_date": "2026-03-12T12:08:48Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/1181/versions/20260312T120848Z.pdf",
      "captured_at": "2026-03-12T12:08:48Z",
      "label": "copy captured 2026-03-12",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260312120848id_/https://eprint.iacr.org/2021/1181.pdf",
      "size": 29397390,
      "sha256": "d91d7c2ac97bc1a91797d464c5508c38ecf3ded1033b61986d945ed00937738b",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260312120848id_/https://eprint.iacr.org/2021/1181.pdf",
      "captured_at": "2026-03-12T12:08:48Z",
      "size": 29317250
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1181.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 29397390
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1181,\n      author = {Madura A. Shelton and Łukasz Chmielewski and Niels Samwel and Markus Wagner and Lejla Batina and Yuval Yarom},\n      title = {Rosita++: Automatic Higher-Order Leakage Elimination from Cryptographic Code},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1181},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1181}\n}"
}
