Constant-time GCD function.
authorCesar Pereida Garcia <cesar.pereidagarcia@tut.fi>
Fri, 13 Sep 2019 14:54:54 +0000 (17:54 +0300)
committerNicola Tuveri <nic.tuv@gmail.com>
Thu, 17 Oct 2019 11:25:10 +0000 (14:25 +0300)
commitf3c4adfc7eb13e9eff514039b4c60b457bdba433
tree7d59d9107aae4abece7a5cfabcf762eb2943c081
parent8eba6de59e2b06f23c214344423a5a618d1c9ffd
Constant-time GCD function.

This commit replaces the current `BN_gcd` function with a constant-time
GCD implementation.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10122)
crypto/bn/bn_gcd.c