{
  "id": "2023/1287",
  "url": "https://opencryptology.org/2023/1287",
  "original_url": "https://eprint.iacr.org/2023/1287",
  "title": "To extend or not to extend: Agile Masking Instructions for PQC",
  "authors": [
    "Markus Krausz",
    "Georg Land",
    "Florian Stolz",
    "Dennis Naujoks",
    "Jan Richter-Brockmann",
    "Tim Güneysu",
    "Lucie Kogelheide"
  ],
  "affiliations": null,
  "abstract": "Splitting up sensitive data into multiple shares – termed masking – has\nproven an effective countermeasure against various types of Side-Channel Analysis (SCA) on cryptographic implementations. However, in software this approach not only leads to dramatic performance overheads for non-linear operations, but also suffers from microarchitectural leakage, which is hard to avoid. Both problems can be addressed with one solution: masked hardware accelerators. In this context, Gao et al. [GGM+ 21] presented a RISC-V Instruction Set Extension (ISE) with masked Boolean and arithmetic instructions to accelerate masked software implementations of block ciphers. In this work, we demonstrate how this ISE can be applied to and extended for Post-Quantum Cryptography (PQC) components, forming a crypto-agile solution. We provide masked implementations based on three different ISE constellations for multiple highly relevant components, including Cumulative Distribution Table (CDT) sampling and polynomial rotation, which, to the best of our knowledge, have not been masked before. With the masked instructions, we measure speedups of more than one order of magnitude compared to sophisticated bitsliced implementations and even up to two orders of magnitude for non-bitsliced implementations. We assert the first-order security of our implementation with a practical evaluation.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“To extend or not to extend: Agile Masking Instructions for PQC” by Markus Krausz, Georg Land, Florian Stolz, Dennis Naujoks, Jan Richter-Brockmann, Tim Güneysu, Lucie Kogelheide, Cryptology ePrint Archive, Paper 2023/1287, https://eprint.iacr.org/2023/1287. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-08-28T06:50:55Z",
    "updated": "2024-02-29T13:43:53Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1287.pdf",
    "sha256": "258aaefb99f7a5e7c10639c5c7c7e1a99ac73fff29356bf50306d873928f7872",
    "size": 847844,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1287/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1287.pdf",
      "size": 847844,
      "sha256": "258aaefb99f7a5e7c10639c5c7c7e1a99ac73fff29356bf50306d873928f7872",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2023/1287/versions/20240129T093341Z.pdf",
      "captured_at": "2024-01-29T09:33:41Z",
      "label": "copy captured 2024-01-29",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240129093341id_/https://eprint.iacr.org/2023/1287.pdf",
      "size": 824781,
      "sha256": "d192214366e44317870b9a8e01a194acddd93a62765243af1eca562ad0645e4f",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1287.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 847844
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260421043321id_/https://eprint.iacr.org/2023/1287.pdf",
      "captured_at": "2026-04-21T04:33:21Z",
      "size": 786849
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1287,\n      author = {Markus Krausz and Georg Land and Florian Stolz and Dennis Naujoks and Jan Richter-Brockmann and Tim Güneysu and Lucie Kogelheide},\n      title = {To extend or not to extend: Agile Masking Instructions for PQC},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1287},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1287}\n}"
}
