{
  "id": "2019/936",
  "url": "https://opencryptology.org/2019/936",
  "original_url": "https://eprint.iacr.org/2019/936",
  "title": "SNEIK on Microcontrollers: AVR, ARMv7-M, and RISC-V with Custom Instructions",
  "authors": [
    "Markku-Juhani O. Saarinen"
  ],
  "affiliations": null,
  "abstract": "SNEIK is a family of lightweight cryptographic algorithms derived from a\nsingle 512-bit permutation. The SNEIGEN ``entropy distribution\nfunction'' was designed to speed up certain functions in post-quantum\nand lattice-based public key algorithms.\nWe implement and evaluate SNEIK algorithms on popular 8-bit AVR and 32-bit\nARMv7-M (Cortex M3/M4) microcontrollers, and also describe an\nimplementation for the open-source RISC-V (RV32I) Instruction Set\nArchitecture (ISA). Our results demonstrate that SNEIK algorithms usually\noutperform AES and SHA-2/3 on these lightweight targets while having a\nnaturally constant-time design and significantly smaller implementation\nfootprint. The RISC-V architecture is becoming increasingly popular for\ncustom embedded designs that integrate a CPU core with application-specific\nhardware components.\nWe show that inclusion of two simple custom instructions into the RV32I\nISA yields a radical (more than five-fold) speedup of the SNEIK\npermutation and derived algorithms on that target, allowing us to reach\n12.4 cycles/byte SNEIKEN-128 authenticated encryption performance on\nPQShield's ``Crimson Puppy'' RV32I-based SoC. Our performance measurements\nare for realistic message sizes and have been made using real hardware.\nWe also offer implementation size metrics in terms of RAM, firmware size,\nand additional FPGA logic for the custom instruction set extensions.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“SNEIK on Microcontrollers: AVR, ARMv7-M, and RISC-V with Custom Instructions” by Markku-Juhani O. Saarinen, Cryptology ePrint Archive, Paper 2019/936, https://eprint.iacr.org/2019/936. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2019-08-18T15:53:07Z",
    "updated": "2019-09-20T11:33:48Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/936.pdf",
    "sha256": "6b8d51700e32fc2bbd7d0cf2b5805cb749d46aeea6141e76739b7b8fbf390c6a",
    "size": 858029,
    "source": "github-mirror",
    "source_date": "2020-04-17T10:36:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2019/936/versions/20200417T103614Z.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "label": "copy captured 2020-04-17",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/936.pdf",
      "size": 858029,
      "sha256": "6b8d51700e32fc2bbd7d0cf2b5805cb749d46aeea6141e76739b7b8fbf390c6a",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260928162415id_/https://eprint.iacr.org/2019/936.pdf",
      "captured_at": "2026-09-28T16:24:15Z",
      "size": 858529
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/936.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 858029
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/936,\n      author = {Markku-Juhani O. Saarinen},\n      title = {SNEIK on Microcontrollers: AVR, ARMv7-M, and RISC-V with Custom Instructions},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/936},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/936}\n}"
}
