From cf64febdf3619178d65cd708a3beb81994fe5f2b Mon Sep 17 00:00:00 2001 From: tb <> Date: Tue, 8 Aug 2023 15:18:24 +0000 Subject: Drop the unused BN_BLINDING argument of BN_BLINDING_create_param() --- src/lib/libcrypto/rsa/rsa_crpt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/rsa/rsa_crpt.c') diff --git a/src/lib/libcrypto/rsa/rsa_crpt.c b/src/lib/libcrypto/rsa/rsa_crpt.c index a53ec54b32..99086735ea 100644 --- a/src/lib/libcrypto/rsa/rsa_crpt.c +++ b/src/lib/libcrypto/rsa/rsa_crpt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsa_crpt.c,v 1.24 2023/08/08 13:49:45 tb Exp $ */ +/* $OpenBSD: rsa_crpt.c,v 1.25 2023/08/08 15:18:24 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -209,13 +209,14 @@ RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) BN_init(&n); BN_with_flags(&n, rsa->n, BN_FLG_CONSTTIME); - if ((ret = BN_BLINDING_create_param(NULL, e, &n, ctx, - rsa->meth->bn_mod_exp, rsa->_method_mod_n)) == NULL) { + if ((ret = BN_BLINDING_create_param(e, &n, ctx, rsa->meth->bn_mod_exp, + rsa->_method_mod_n)) == NULL) { RSAerror(ERR_R_BN_LIB); goto err; } CRYPTO_THREADID_current(BN_BLINDING_thread_id(ret)); -err: + + err: BN_CTX_end(ctx); if (ctx != in_ctx) BN_CTX_free(ctx); -- cgit v1.2.3-55-g6feb