Group the non-constant time gcd functions together
authortb <tb@openbsd.org>
Sat, 1 Apr 2023 11:08:43 +0000 (11:08 +0000)
committertb <tb@openbsd.org>
Sat, 1 Apr 2023 11:08:43 +0000 (11:08 +0000)
commitb68869255ac747b9730f36ef2fe650099359c6f1
tree8b7524a202924c80a117afc8b33c42e9ec7d6c0d
parentec3942ec3b53dd34226b8590dcaac7f429a5155b
Group the non-constant time gcd functions together

The only consumer of euclid() is BN_gcd(), which, in turn is only
used by BN_gcd_nonct(). Group them together rather than having
parts of the constant time implementation separate them.

This moves two functions to a different place in the file.
lib/libcrypto/bn/bn_gcd.c