Bernstein, Daniel J., and Bo-Yin Yang. “Fast Constant-Time Gcd Computation and Modular Inversion”. IACR Transactions on Cryptographic Hardware and Embedded Systems 2019, no. 3 (May 9, 2019): 340-398. Accessed August 12, 2020. https://tches.iacr.org/index.php/TCHES/article/view/8298.