diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_gcd.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_gcd.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/libcrypto/bn/bn_gcd.c b/src/lib/libcrypto/bn/bn_gcd.c index 6b3d8a3cb9..fa5d71a7f3 100644 --- a/src/lib/libcrypto/bn/bn_gcd.c +++ b/src/lib/libcrypto/bn/bn_gcd.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_gcd.c,v 1.28 2023/06/02 17:15:30 tb Exp $ */ | 1 | /* $OpenBSD: bn_gcd.c,v 1.29 2024/04/10 14:58:06 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -195,12 +195,7 @@ BN_gcd(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) | |||
195 | BN_CTX_end(ctx); | 195 | BN_CTX_end(ctx); |
196 | return (ret); | 196 | return (ret); |
197 | } | 197 | } |
198 | 198 | LCRYPTO_ALIAS(BN_gcd); | |
199 | int | ||
200 | BN_gcd_nonct(BIGNUM *r, const BIGNUM *in_a, const BIGNUM *in_b, BN_CTX *ctx) | ||
201 | { | ||
202 | return BN_gcd(r, in_a, in_b, ctx); | ||
203 | } | ||
204 | 199 | ||
205 | /* | 200 | /* |
206 | * BN_gcd_no_branch is a special version of BN_mod_inverse_no_branch. | 201 | * BN_gcd_no_branch is a special version of BN_mod_inverse_no_branch. |
@@ -808,6 +803,7 @@ BN_mod_inverse(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx) | |||
808 | (BN_get_flags(n, BN_FLG_CONSTTIME) != 0)); | 803 | (BN_get_flags(n, BN_FLG_CONSTTIME) != 0)); |
809 | return BN_mod_inverse_internal(in, a, n, ctx, ct); | 804 | return BN_mod_inverse_internal(in, a, n, ctx, ct); |
810 | } | 805 | } |
806 | LCRYPTO_ALIAS(BN_mod_inverse); | ||
811 | 807 | ||
812 | BIGNUM * | 808 | BIGNUM * |
813 | BN_mod_inverse_nonct(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx) | 809 | BN_mod_inverse_nonct(BIGNUM *in, const BIGNUM *a, const BIGNUM *n, BN_CTX *ctx) |