{
  "id": "2020/049",
  "url": "https://opencryptology.org/2020/049",
  "original_url": "https://eprint.iacr.org/2020/049",
  "title": "ISA Extensions for Finite Field Arithmetic - Accelerating Kyber and NewHope on RISC-V",
  "authors": [
    "Erdem Alkim",
    "Hülya Evkan",
    "Norman Lahr",
    "Ruben Niederhagen",
    "Richard Petri"
  ],
  "affiliations": null,
  "abstract": "We present and evaluate a custom extension to the RISC-V instruction set\nfor finite fields arithmetic. The result serves as a very compact\napproach to software-hardware co-design of PQC implementations in the\ncontext of small embedded processors such as smartcards. The extension\nprovides instructions that implement finite field operations with\nsubsequent reduction of the result. As small finite fields are used in\nvarious PQC schemes, such instructions can provide a considerable\nspeedup for an otherwise software-based implementation. Furthermore, we\ncreate a prototype implementation of the presented instructions for the\nextendable VexRiscv core, integrate the result into a chip design, and\nevaluate the design on two different FPGA platforms. The effectiveness\nof the extension is evaluated by using the instructions to optimize the\nKyber and Newhope key-encapsulation schemes. To that end, we also\npresent an optimized software implementation for the standard RISC-V\ninstruction set for the polynomial arithmetic underlying those schemes,\nwhich serves as basis for comparison. Both variants are tuned on an\nassembler level to optimally use the processor pipelines of contemporary\nRISC-V CPUs. The result shows a speedup for the polynomial arithmetic of\nup to 85% over the basic software implementation. Using the custom\ninstructions drastically reduces the code and data size of the\nimplementation without introducing runtime-performance penalties at a\nsmall cost in circuit size. When used in the selected schemes, the\ncustom instructions can be used to replace a full general purpose\nmultiplier to achieve very compact implementations.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“ISA Extensions for Finite Field Arithmetic - Accelerating Kyber and NewHope on RISC-V” by Erdem Alkim, Hülya Evkan, Norman Lahr, Ruben Niederhagen, Richard Petri, Cryptology ePrint Archive, Paper 2020/049, https://eprint.iacr.org/2020/049. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2020-01-17T08:27:31Z",
    "updated": "2020-01-17T08:27:31Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2020/049.pdf",
    "sha256": "e0bb51d615febc1012f4a85c563cd9ee92c3913eb5a3e859c9aa2add7b35a761",
    "size": 624380,
    "source": "github-mirror",
    "source_date": "2020-04-17T10:36:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2020/049/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/2020/049.pdf",
      "size": 624380,
      "sha256": "e0bb51d615febc1012f4a85c563cd9ee92c3913eb5a3e859c9aa2add7b35a761",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260930072702id_/https://eprint.iacr.org/2020/049.pdf",
      "captured_at": "2026-09-30T07:27:02Z",
      "size": 624630
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2020/049.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 624380
    }
  ],
  "bibtex": "@misc{cryptoeprint:2020/049,\n      author = {Erdem Alkim and Hülya Evkan and Norman Lahr and Ruben Niederhagen and Richard Petri},\n      title = {ISA Extensions for Finite Field Arithmetic - Accelerating Kyber and NewHope on RISC-V},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2020/049},\n      year = {2020},\n      url = {https://eprint.iacr.org/2020/049}\n}"
}
