{
  "id": "2021/667",
  "url": "https://opencryptology.org/2021/667",
  "original_url": "https://eprint.iacr.org/2021/667",
  "title": "Optimized Implementation of SM4 on AVR Microcontrollers, RISC-V Processors, and ARM Processors",
  "authors": [
    "Hyeokdong Kwon",
    "Hyunjun Kim",
    "Siwoo Eum",
    "Minjoo Sim",
    "Hyunji Kim",
    "Wai-Kong Lee",
    "Zhi Hu",
    "Hwajeong Seo"
  ],
  "affiliations": null,
  "abstract": "The SM4 block cipher is a Chinese domestic crpytographic that was  introduced in 2003. Since the algorithm was developed for the use in wireless sensor networks, it is mandated in the Chinese National Standard for Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure). The SM4 block cipher uses a 128-bit block size and a 32-bit round key. This consists of 32 rounds and one reverse translation \\texttt{R}. In this paper, we present the optimized implementation of the SM4 block cipher on 8-bit AVR microcontrollers, which are widely used in wireless sensor devices, the optimized implementation of the SM4 block cipher on 32-bit RISC-V processors, which are open-source based computer architectures,\nand the optimized implementation of SM4 on 64-bit ARM processors with the parallel computation, which are widely used in smartphone and tablet. In the AVR microcontroller, it is implemented in three versions, including speed-optimization, memory-optimization, and code-optimization. As a result,  speed-optimization, memory-optimization, and code-optimization achieved 205.2 cycles per byte, 213.3 cycles per byte and 207.4 cycles per byte, respectively. This is faster than the reference implementation written in C (1670.7 cycles per byte). The implementation on 32-bit RISC-V processors 128.8 cycles per byte. This is faster than the reference C code implementation (345.7 cycles per byte).\nThe implementation on 64-bit ARM processors is 8.62 cycles per byte. This is faster than the reference C code implementation (120.07 cycles per byte).",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Optimized Implementation of SM4 on AVR Microcontrollers, RISC-V Processors, and ARM Processors” by Hyeokdong Kwon, Hyunjun Kim, Siwoo Eum, Minjoo Sim, Hyunji Kim, Wai-Kong Lee, Zhi Hu, Hwajeong Seo, Cryptology ePrint Archive, Paper 2021/667, https://eprint.iacr.org/2021/667. 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-05-25T07:05:47Z",
    "updated": "2021-06-18T14:09:15Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/667.pdf",
    "sha256": "728b9af7441bfc11465702f488468fa0b06d37c4e75a3dedf35d9eb61130e8c7",
    "size": 330431,
    "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/667/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/667.pdf",
      "size": 330431,
      "sha256": "728b9af7441bfc11465702f488468fa0b06d37c4e75a3dedf35d9eb61130e8c7",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260305073756id_/https://eprint.iacr.org/2021/667.pdf",
      "captured_at": "2026-03-05T07:37:56Z",
      "size": 331306
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/667.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 330431
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/667,\n      author = {Hyeokdong Kwon and Hyunjun Kim and Siwoo Eum and Minjoo Sim and Hyunji Kim and Wai-Kong Lee and Zhi Hu and Hwajeong Seo},\n      title = {Optimized Implementation of SM4 on AVR Microcontrollers, RISC-V Processors, and ARM Processors},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/667},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/667}\n}"
}
