{
  "id": "2021/997",
  "url": "https://opencryptology.org/2021/997",
  "original_url": "https://eprint.iacr.org/2021/997",
  "title": "Higher-Order Lookup Table Masking in Essentially Constant Memory",
  "authors": [
    "Annapurna Valiveti",
    "Srinivas Vivek"
  ],
  "affiliations": null,
  "abstract": "Masking using randomised lookup tables is a popular countermeasure for side-channel attacks, particularly at small masking orders. An advantage of this class of countermeasures for masking S-boxes compared to ISW-based masking is that it supports pre-processing and thus significantly reducing the amount of computation to be done after the unmasked inputs are available. Indeed, the online computation can be as fast as just a table lookup.  But the size of the randomised lookup table increases linearly with the masking order, and hence the RAM memory required to store pre-processed tables\nbecomes infeasible for higher masking orders. Hence demonstrating the feasibility of full pre-processing of higher-order lookup table-based masking schemes on resource-constrained devices has remained an open problem.\n\nIn this work, we solve the above problem by implementing a higher-order lookup table-based scheme using an amount of RAM memory that is essentially independent of the masking order.  More concretely, we reduce the amount of RAM memory needed for the table-based scheme of Coron et al. (TCHES 2018) approximately by a factor equal to the number of shares.  Our technique is based upon the use of PRG to minimise the randomness complexity of ISW-based masking schemes proposed by Ishai et al. (ICALP 2013) and Coron et al. (Eurocrypt 2020). Hence we show that for lookup table-based masking schemes, the use of a PRG not only reduces the randomness complexity (now logarithmic in the size of the S-box) but also the memory complexity, and without any significant increase in the overall running time.  We have implemented in software the higher-order table-based masking scheme of Coron et al. (TCHES 2018) at tenth order with full pre-processing of a single execution of all the AES S-boxes on a ARM Cortex-M4 device that has 256 KB RAM memory.  Our technique requires only 41.2 KB of RAM memory, whereas the original scheme would have needed 440 KB.   Moreover, our 8-bit implementation results demonstrate that the online execution time of our variant is about 1.5 times faster compared to the 8-bit bitsliced masked implementation of AES-128.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Higher-Order Lookup Table Masking in Essentially Constant Memory” by Annapurna Valiveti, Srinivas Vivek, Cryptology ePrint Archive, Paper 2021/997, https://eprint.iacr.org/2021/997. 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-07-28T06:39:43Z",
    "updated": "2021-07-28T06:39:43Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/997.pdf",
    "sha256": "8b3db0070a41a168f9eb6e6a7a0c54c2deabd84ce5e1046087165f6b280ef1f4",
    "size": 815165,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/997/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/997.pdf",
      "size": 815165,
      "sha256": "8b3db0070a41a168f9eb6e6a7a0c54c2deabd84ce5e1046087165f6b280ef1f4",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/997.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 815165
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20210918132203id_/https://eprint.iacr.org/2021/997.pdf",
      "captured_at": "2021-09-18T13:22:03Z",
      "size": 671955
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/997,\n      author = {Annapurna Valiveti and Srinivas Vivek},\n      title = {Higher-Order Lookup Table Masking in Essentially Constant Memory},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/997},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/997}\n}"
}
