{
  "id": "2021/1030",
  "url": "https://opencryptology.org/2021/1030",
  "original_url": "https://eprint.iacr.org/2021/1030",
  "title": "A lightweight ISE for ChaCha on RISC-V",
  "authors": [
    "Ben Marshall",
    "Daniel Page",
    "Thinh Hung Pham"
  ],
  "affiliations": null,
  "abstract": "ChaCha is a high-throughput stream cipher designed with the aim of ensuring high-security margins while achieving high performance on software platforms. RISC-V, an emerging, free, and open Instruction Set Architecture (ISA) is being developed with many instruction set extensions (ISE). ISEs are a native concept in RISC-V to support a relatively small RISC-V ISA to suit different use-cases including cryptographic acceleration via either standard or custom ISEs. This paper proposes a lightweight ISE to support ChaCha on RISC-V architectures. This approach targets embedded computing systems such as IoT edge devices that don't support a vector engine. The proposed ISE is designed to accelerate the computation of the ChaCha block function and align with the  RISC-V design principles. We show that our proposed ISEs help to improve the efficiency of the ChaCha block function. The ISE-assisted implementation of ChaCha encryption speeds up at least $5.4\\times$ and $3.4\\times$ compared to the OpenSSL baseline and ISA-based optimised implementation, respectively. For encrypting short messages, the ISE-assisted implementation gains a comparative performance compared to the implementations using very high area overhead vector extensions.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A lightweight ISE for ChaCha on RISC-V” by Ben Marshall, Daniel Page, Thinh Hung Pham, Cryptology ePrint Archive, Paper 2021/1030, https://eprint.iacr.org/2021/1030. 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-08-16T13:04:11Z",
    "updated": "2021-08-16T13:04:11Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1030.pdf",
    "sha256": "b94a6f3ffae746dd9de9b11b2dff17f5fc680b68bb069f87ee4e8b1fa0909f85",
    "size": 722789,
    "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/1030/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/1030.pdf",
      "size": 722789,
      "sha256": "b94a6f3ffae746dd9de9b11b2dff17f5fc680b68bb069f87ee4e8b1fa0909f85",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260304013454id_/https://eprint.iacr.org/2021/1030.pdf",
      "captured_at": "2026-03-04T01:34:54Z",
      "size": 672615
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1030.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 722789
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1030,\n      author = {Ben Marshall and Daniel Page and Thinh Hung Pham},\n      title = {A lightweight ISE for ChaCha on RISC-V},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1030},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1030}\n}"
}
