From 9f74244c49777c6372916bb15863377b2ca08bb1 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 13 Feb 2025 11:10:01 +0000 Subject: Convert BPSW to BN_MONT_CTX_create() ok jsing --- src/lib/libcrypto/bn/bn_bpsw.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/libcrypto/bn/bn_bpsw.c b/src/lib/libcrypto/bn/bn_bpsw.c index 14f2800ad3..04db17b527 100644 --- a/src/lib/libcrypto/bn/bn_bpsw.c +++ b/src/lib/libcrypto/bn/bn_bpsw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_bpsw.c,v 1.11 2023/08/03 18:53:55 tb Exp $ */ +/* $OpenBSD: bn_bpsw.c,v 1.12 2025/02/13 11:10:01 tb Exp $ */ /* * Copyright (c) 2022 Martin Grenouilloux * Copyright (c) 2022 Theo Buehler @@ -426,10 +426,7 @@ bn_miller_rabin(int *is_pseudoprime, const BIGNUM *n, BN_CTX *ctx, * Montgomery setup for n. */ - if ((mctx = BN_MONT_CTX_new()) == NULL) - goto err; - - if (!BN_MONT_CTX_set(mctx, n, ctx)) + if ((mctx = BN_MONT_CTX_create(n, ctx)) == NULL) goto err; /* -- cgit v1.2.3-55-g6feb