{
  "id": "2020/903",
  "url": "https://opencryptology.org/2020/903",
  "original_url": "https://eprint.iacr.org/2020/903",
  "title": "Optimizing Implementations of Linear Layers",
  "authors": [
    "Zejun Xiang",
    "Xiangyong Zeng",
    "Da Lin",
    "Zhenzhen Bao",
    "Shasha Zhang"
  ],
  "affiliations": null,
  "abstract": "In this paper, we propose a new heuristic algorithm to search efficient\nimplementations (in terms of Xor count) of linear layers used in symmetric-key\ncryptography. It is observed that the implementation cost of an invertible matrix is\nrelated to its matrix decomposition if sequential-Xor (s-Xor) metric is considered,\nthus reducing the implementation cost is equivalent to constructing an optimized\nmatrix decomposition. The basic idea of this work is to find various matrix de-\ncompositions for a given matrix and optimize those decompositions to pick the best\nimplementation. In order to optimize matrix decompositions, we present several ma-\ntrix multiplication rules over F2, which are proved to be very powerful in reducing\nthe implementation cost. We illustrate this heuristic by searching implementations\nof several matrices proposed recently and matrices already used in block ciphers and\nHash functions, and the results show that our heuristic performs equally good or\noutperforms Paar’s and Boyar-Peralta’s heuristics in most cases.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Optimizing Implementations of Linear Layers” by Zejun Xiang, Xiangyong Zeng, Da Lin, Zhenzhen Bao, Shasha Zhang, Cryptology ePrint Archive, Paper 2020/903, https://eprint.iacr.org/2020/903. 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-07-18T16:13:12Z",
    "updated": "2021-02-25T12:28:13Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/903.pdf",
    "sha256": "f4ceabdac291a1739ca04f40e66ab8d949779ab2dd4e577dcfd13cc0c479ef70",
    "size": 199237,
    "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/903/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/903.pdf",
      "size": 199237,
      "sha256": "f4ceabdac291a1739ca04f40e66ab8d949779ab2dd4e577dcfd13cc0c479ef70",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2020/903/versions/20200930T095523Z.pdf",
      "captured_at": "2020-09-30T09:55:23Z",
      "label": "copy captured 2020-09-30",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20200930095523id_/https://eprint.iacr.org/2020/903.pdf",
      "size": 196195,
      "sha256": "9a986fdc05d0ac44b0ff89d4a6108d8b4efe1bdff466afcdeacfa8abf8ca4aec",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/903.pdf",
      "captured_at": "2024-01-14T06:13:14Z",
      "size": 199237
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20210506180341id_/https://eprint.iacr.org/2020/903.pdf",
      "captured_at": "2021-05-06T18:03:41Z",
      "size": 187902
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/903,\n      author = {Zejun Xiang and Xiangyong Zeng and Da Lin and Zhenzhen Bao and Shasha Zhang},\n      title = {Optimizing Implementations of Linear Layers},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/903},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/903}\n}"
}
