diff options
author | tb <> | 2023-04-25 17:20:24 +0000 |
---|---|---|
committer | tb <> | 2023-04-25 17:20:24 +0000 |
commit | aa06d7ad77065baccf6e34cfea8c5e8a2debb237 (patch) | |
tree | ae0ed0dfe9a192cbc8daea9b76558f61aeec8af2 /src/lib | |
parent | 0485b37a1da5a757c20fec04ad0e945f556bfffc (diff) | |
download | openbsd-aa06d7ad77065baccf6e34cfea8c5e8a2debb237.tar.gz openbsd-aa06d7ad77065baccf6e34cfea8c5e8a2debb237.tar.bz2 openbsd-aa06d7ad77065baccf6e34cfea8c5e8a2debb237.zip |
Remove the no longer used BN_MONT_CTX_init()
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/bn/bn.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/bn/bn_mont.c | 11 |
2 files changed, 2 insertions, 15 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index 9fefde20a8..4fd795671d 100644 --- a/src/lib/libcrypto/bn/bn.h +++ b/src/lib/libcrypto/bn/bn.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn.h,v 1.66 2023/04/25 17:13:06 tb Exp $ */ | 1 | /* $OpenBSD: bn.h,v 1.67 2023/04/25 17:20:24 tb Exp $ */ |
2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -464,10 +464,6 @@ int BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, | |||
464 | int do_trial_division, BN_GENCB *cb); | 464 | int do_trial_division, BN_GENCB *cb); |
465 | 465 | ||
466 | BN_MONT_CTX *BN_MONT_CTX_new(void ); | 466 | BN_MONT_CTX *BN_MONT_CTX_new(void ); |
467 | /* Remove in next major bump. */ | ||
468 | #if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) | ||
469 | void BN_MONT_CTX_init(BN_MONT_CTX *ctx); | ||
470 | #endif | ||
471 | int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, | 467 | int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, |
472 | BN_MONT_CTX *mont, BN_CTX *ctx); | 468 | BN_MONT_CTX *mont, BN_CTX *ctx); |
473 | int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, | 469 | int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, |
diff --git a/src/lib/libcrypto/bn/bn_mont.c b/src/lib/libcrypto/bn/bn_mont.c index 26b9a6f64d..f6ca5a34f1 100644 --- a/src/lib/libcrypto/bn/bn_mont.c +++ b/src/lib/libcrypto/bn/bn_mont.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_mont.c,v 1.57 2023/04/22 14:31:44 jsing Exp $ */ | 1 | /* $OpenBSD: bn_mont.c,v 1.58 2023/04/25 17:20:24 tb 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 | * |
@@ -139,15 +139,6 @@ BN_MONT_CTX_new(void) | |||
139 | } | 139 | } |
140 | 140 | ||
141 | void | 141 | void |
142 | BN_MONT_CTX_init(BN_MONT_CTX *mctx) | ||
143 | { | ||
144 | memset(mctx, 0, sizeof(*mctx)); | ||
145 | |||
146 | BN_init(&mctx->RR); | ||
147 | BN_init(&mctx->N); | ||
148 | } | ||
149 | |||
150 | void | ||
151 | BN_MONT_CTX_free(BN_MONT_CTX *mctx) | 142 | BN_MONT_CTX_free(BN_MONT_CTX *mctx) |
152 | { | 143 | { |
153 | if (mctx == NULL) | 144 | if (mctx == NULL) |