diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-25 17:20:25 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-25 17:20:25 +0000 |
commit | cc93688b8609b0959b888d8ffb4dc9c97da4c31e (patch) | |
tree | 3bc3107f4329d3e22277ce0bbcf7e8948be05f71 /lib/libcrypto | |
parent | 421484b74b073e00e21dd9b25502792413d625ae (diff) |
Remove the no longer used BN_MONT_CTX_init()
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/bn/bn.h | 6 | ||||
-rw-r--r-- | lib/libcrypto/bn/bn_mont.c | 11 |
2 files changed, 2 insertions, 15 deletions
diff --git a/lib/libcrypto/bn/bn.h b/lib/libcrypto/bn/bn.h index 9fefde20a8e..4fd795671d9 100644 --- a/lib/libcrypto/bn/bn.h +++ b/lib/libcrypto/bn/bn.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bn.h,v 1.66 2023/04/25 17:13:06 tb Exp $ */ +/* $OpenBSD: bn.h,v 1.67 2023/04/25 17:20:24 tb Exp $ */ /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -464,10 +464,6 @@ int BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx, int do_trial_division, BN_GENCB *cb); BN_MONT_CTX *BN_MONT_CTX_new(void ); -/* Remove in next major bump. */ -#if !defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_INTERNAL) -void BN_MONT_CTX_init(BN_MONT_CTX *ctx); -#endif int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_MONT_CTX *mont, BN_CTX *ctx); int BN_to_montgomery(BIGNUM *r, const BIGNUM *a, BN_MONT_CTX *mont, diff --git a/lib/libcrypto/bn/bn_mont.c b/lib/libcrypto/bn/bn_mont.c index 26b9a6f64dd..f6ca5a34f19 100644 --- a/lib/libcrypto/bn/bn_mont.c +++ b/lib/libcrypto/bn/bn_mont.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mont.c,v 1.57 2023/04/22 14:31:44 jsing Exp $ */ +/* $OpenBSD: bn_mont.c,v 1.58 2023/04/25 17:20:24 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -139,15 +139,6 @@ BN_MONT_CTX_new(void) } void -BN_MONT_CTX_init(BN_MONT_CTX *mctx) -{ - memset(mctx, 0, sizeof(*mctx)); - - BN_init(&mctx->RR); - BN_init(&mctx->N); -} - -void BN_MONT_CTX_free(BN_MONT_CTX *mctx) { if (mctx == NULL) |