-/* $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.
*
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,
-/* $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.
*
return mctx;
}
-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)
{