{
  "id": "2022/1154",
  "url": "https://opencryptology.org/2022/1154",
  "original_url": "https://eprint.iacr.org/2022/1154",
  "title": "Efficient Constant-Time Implementation of SM4 with Intel GFNI instruction set extension and Arm NEON coprocessor",
  "authors": [
    "Weiji Guo"
  ],
  "affiliations": null,
  "abstract": "The efficiency of constant-time SM4 implementation has been lagging behind that of AES for most internet traffic and applicable data encryption scenarios. The best performance before our works was 3.77 cpb for x86 platform (AESNI + AVX2), and 8.62 cpb for Arm platform (NEON). Meanwhile the state of art constant-time AES implementation could reach 0.63 cpb. Dedicated SM4 instruction set extensions like those optionally available in Armv8.2, could achieve comparable cpb to AES. But they are only available in limited processors, therefore does not impact much to real-world uses. To fill the gap we explored some novel techniques with Intel GFNI instruction set extension and Arm NEON coprocessor. We achieved 1.51 cpb with GFNI + AVX512 and 2.62 cpb with GFNI + AVX2 for Intel processors; we also achieved 6.74 cpb with NEON. In addition, we simplified the algebraic expression of SM4 S-Box. And our technique to exploit L1 cache could also be applied to other applications and hardware platforms if the circumstances apply.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Constant-Time Implementation of SM4 with Intel GFNI instruction set extension and Arm NEON coprocessor” by Weiji Guo, Cryptology ePrint Archive, Paper 2022/1154, https://eprint.iacr.org/2022/1154. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-09-05T11:52:32Z",
    "updated": "2022-09-07T02:56:52Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/1154.pdf",
    "sha256": "0ffcec9fc987440ef1f1587366cda658f7cd4d7c1d7103854bfdcd46684b5d86",
    "size": 922852,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/1154/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1154.pdf",
      "size": 922852,
      "sha256": "0ffcec9fc987440ef1f1587366cda658f7cd4d7c1d7103854bfdcd46684b5d86",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260224065221id_/https://eprint.iacr.org/2022/1154.pdf",
      "captured_at": "2026-02-24T06:52:21Z",
      "size": 860580
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/1154.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 922852
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/1154,\n      author = {Weiji Guo},\n      title = {Efficient Constant-Time Implementation of SM4 with Intel GFNI instruction set extension and Arm NEON coprocessor},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1154},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/1154}\n}"
}
