{
  "id": "2020/1103",
  "url": "https://opencryptology.org/2020/1103",
  "original_url": "https://eprint.iacr.org/2020/1103",
  "title": "Packed Multiplication: How to Amortize the Cost of Side-channel Masking ?",
  "authors": [
    "Weijia Wang",
    "Chun Guo",
    "François-Xavier Standaert",
    "Yu Yu",
    "Gaëtan Cassiers"
  ],
  "affiliations": null,
  "abstract": "Higher-order masking countermeasures provide strong provable security against side-channel attacks at the cost of incurring significant overheads, which largely hinders its applicability. Previous works towards remedying cost mostly concentrated on ``local'' calculations, i.e., optimizing the cost of computation units such as a single  AND gate or a field multiplication. This paper explores a complementary ``global'' approach, i.e., considering multiple operations in the masked domain as a batch and reducing randomness and computational cost via amortization.\nIn particular, we focus on the amortization of $\\ell$ parallel field multiplications for appropriate integer $\\ell > 1$, and design a kit named {\\it packed multiplication} for implementing such a batch.\nFor $\\ell+d\\leq2^m$, when $\\ell$ parallel multiplications over $\\mathbb{F}_{2^{m}}$ with $d$-th order probing security are implemented, packed multiplication consumes $d^2+2\\ell d + \\ell$ bilinear multiplications and $2d^2 + d(d+1)/2$ random field variables, outperforming the state-of-the-art results with $O(\\ell d^2)$ multiplications and $\\ell \\left \\lfloor d^2/4\\right \\rfloor + \\ell d$ randomness. To prove $d$-probing security for packed multiplications, we introduce some weaker security notions for multiple-inputs-multiple-outputs gadgets and use them as intermediate steps, which may be of independent interest.\nAs parallel field multiplications exist almost everywhere in symmetric cryptography, lifting optimizations from ``local'' to ``global'' substantially enlarges the space of improvements. To demonstrate, we showcase the method on the AES Subbytes step, GCM and TET (a popular disk encryption). Notably, when $d=8$, our implementation of AES Subbytes in ARM Cortex M architecture achieves a gain of up to $33\\%$ in total speeds and saves up to $68\\%$ random bits than the state-of-the-art bitsliced implementation reported at ASIACRYPT~2018.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Packed Multiplication: How to Amortize the Cost of Side-channel Masking ?” by Weijia Wang, Chun Guo, François-Xavier Standaert, Yu Yu, Gaëtan Cassiers, Cryptology ePrint Archive, Paper 2020/1103, https://eprint.iacr.org/2020/1103. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2020-09-15T11:23:07Z",
    "updated": "2020-09-15T11:23:07Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/1103.pdf",
    "sha256": "7254f0675a3c6cacd090b38040c0068e08090ecc5e172ae5f3c41dc08081ac48",
    "size": 673388,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/1103/versions/20240114T061314Z.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1103.pdf",
      "size": 673388,
      "sha256": "7254f0675a3c6cacd090b38040c0068e08090ecc5e172ae5f3c41dc08081ac48",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260201142023id_/https://eprint.iacr.org/2020/1103.pdf",
      "captured_at": "2026-02-01T14:20:23Z",
      "size": 668814
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/1103.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "size": 673388
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/1103,\n      author = {Weijia Wang and Chun Guo and François-Xavier Standaert and Yu Yu and Gaëtan Cassiers},\n      title = {Packed Multiplication: How to Amortize the Cost of Side-channel Masking ?},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/1103},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/1103}\n}"
}
