{
  "id": "2021/1292",
  "url": "https://opencryptology.org/2021/1292",
  "original_url": "https://eprint.iacr.org/2021/1292",
  "title": "A Fast Large-Integer Extended GCD Algorithm and Hardware Design for Verifiable Delay Functions and Modular Inversion",
  "authors": [
    "Kavya Sreedhar",
    "Mark Horowitz",
    "Christopher Torng"
  ],
  "affiliations": null,
  "abstract": "The extended GCD (XGCD) calculation, which computes Bézout coefficients b_a, b_b such that b_a ∗ a_0 + b_b ∗ b_0 = GCD(a_0, b_0), is a critical operation in many cryptographic applications. In particular, large-integer XGCD is computationally dominant for two applications of increasing interest: verifiable delay functions that square binary quadratic forms within a class group and constant-time modular inversion for elliptic curve cryptography. Most prior work has focused on fast software implementations. The few works investigating hardware acceleration build on variants of Euclid’s division-based algorithm, following the approach used in optimized software. We show that adopting variants of Stein’s subtraction-based algorithm instead leads to significantly faster hardware. We quantify this advantage by performing a large-integer XGCD accelerator design space exploration comparing Euclid- and Stein-based algorithms for various application requirements. This exploration leads us to an XGCD hardware accelerator that is flexible and efficient, supports fast average and constant-time evaluation, and is easily extensible for polynomial GCD. Our 16nm ASIC design calculates 1024-bit XGCD in 294ns (8x faster than the state-of-the-art ASIC) and constant-time 255-bit XGCD for inverses in the field of integers modulo the prime 2^255−19 in 85ns (31× faster than state-of-the-art software). We believe our design is the first high-performance ASIC for the XGCD computation that is also capable of constant-time evaluation. Our work is publicly available at https://github.com/kavyasreedhar/sreedhar-xgcd-hardware-ches2022.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A Fast Large-Integer Extended GCD Algorithm and Hardware Design for Verifiable Delay Functions and Modular Inversion” by Kavya Sreedhar, Mark Horowitz, Christopher Torng, Cryptology ePrint Archive, Paper 2021/1292, https://eprint.iacr.org/2021/1292. 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-09-27T13:03:22Z",
    "updated": "2022-09-16T01:33:26Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/1292.pdf",
    "sha256": "f2597e32fb55a445cebdbf9b7e037b149ef80469d1cc930d4ec729319b1a4d76",
    "size": 596637,
    "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/1292/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/1292.pdf",
      "size": 596637,
      "sha256": "f2597e32fb55a445cebdbf9b7e037b149ef80469d1cc930d4ec729319b1a4d76",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2021/1292/versions/20220808T165957Z.pdf",
      "captured_at": "2022-08-08T16:59:57Z",
      "label": "copy captured 2022-08-08",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20220808165957id_/https://eprint.iacr.org/2021/1292.pdf",
      "size": 606213,
      "sha256": "521c41421d400caf4eb664b215a5f364216e61fa565dcb8ba7e7c66382a76ba1",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2021/1292/versions/20210927T131734Z.pdf",
      "captured_at": "2021-09-27T13:17:34Z",
      "label": "copy captured 2021-09-27",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20210927131734id_/https://eprint.iacr.org/2021/1292.pdf",
      "size": 3712590,
      "sha256": "d82e18ddd904267acde2f772587881ccdbbd11650b6b6c0d637a97a44c73f0ea",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260106194724id_/https://eprint.iacr.org/2021/1292.pdf",
      "captured_at": "2026-01-06T19:47:24Z",
      "size": 588968
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/1292.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 596637
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/1292,\n      author = {Kavya Sreedhar and Mark Horowitz and Christopher Torng},\n      title = {A Fast Large-Integer Extended GCD Algorithm and Hardware Design for Verifiable Delay Functions and Modular Inversion},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/1292},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/1292}\n}"
}
