{
  "id": "2019/794",
  "url": "https://opencryptology.org/2019/794",
  "original_url": "https://eprint.iacr.org/2019/794",
  "title": "Efficient Cryptography on the RISC-V Architecture",
  "authors": [
    "Ko Stoffelen"
  ],
  "affiliations": null,
  "abstract": "RISC-V is a promising free and open-source instruction set architecture. Most of the instruction set has been standardized and several hardware implementations are commercially available. In this paper we highlight features of RISC-V that are interesting for optimizing implementations of cryptographic primitives. We provide the first optimized assembly implementations of table-based AES, bitsliced AES, ChaCha, and the Keccak-$f$[1600] permutation for the RV32I instruction set. With respect to public-key cryptography, we study the performance of arbitrary-precision integer  arithmetic without a carry flag. We then estimate the improvement that can be gained by several RISC-V extensions. These performance studies also serve to aid design choices for future RISC-V extensions and implementations.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Cryptography on the RISC-V Architecture” by Ko Stoffelen, Cryptology ePrint Archive, Paper 2019/794, https://eprint.iacr.org/2019/794. 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-07-14T15:39:51Z",
    "updated": "2019-07-15T14:04:32Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/794.pdf",
    "sha256": "8c72aad26d04b63d13a801801b44aefdca0b2492397e02e76267494472fd9ecc",
    "size": 471675,
    "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/794/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/794.pdf",
      "size": 471675,
      "sha256": "8c72aad26d04b63d13a801801b44aefdca0b2492397e02e76267494472fd9ecc",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250917233812id_/https://eprint.iacr.org/2019/794.pdf",
      "captured_at": "2025-09-17T23:38:12Z",
      "size": 464833
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/794.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 471675
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/794,\n      author = {Ko Stoffelen},\n      title = {Efficient Cryptography on the RISC-V Architecture},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/794},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/794}\n}"
}
