Transactions on Cryptographic Hardware and Embedded Systems (May 2019)

Fast constant-time gcd computation and modular inversion

  • Daniel J. Bernstein,
  • Bo-Yin Yang

DOI
https://doi.org/10.13154/tches.v2019.i3.340-398
Journal volume & issue
Vol. 2019, no. 3

Abstract

Read online

This paper introduces streamlined constant-time variants of Euclid’s algorithm, both for polynomial inputs and for integer inputs. As concrete applications, this paper saves time in (1) modular inversion for Curve25519, which was previously believed to be handled much more efficiently by Fermat’s method, and (2) key generation for the ntruhrss701 and sntrup4591761 lattice-based cryptosystems.

Keywords