diff options
Diffstat (limited to 'src/lib/libcrypto/rsa')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_crpt.c | 9 |
1 files changed, 5 insertions, 4 deletions
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 @@ | |||
1 | /* $OpenBSD: rsa_crpt.c,v 1.24 2023/08/08 13:49:45 tb Exp $ */ | 1 | /* $OpenBSD: rsa_crpt.c,v 1.25 2023/08/08 15:18: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 | * |
@@ -209,13 +209,14 @@ RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx) | |||
209 | BN_init(&n); | 209 | BN_init(&n); |
210 | BN_with_flags(&n, rsa->n, BN_FLG_CONSTTIME); | 210 | BN_with_flags(&n, rsa->n, BN_FLG_CONSTTIME); |
211 | 211 | ||
212 | if ((ret = BN_BLINDING_create_param(NULL, e, &n, ctx, | 212 | if ((ret = BN_BLINDING_create_param(e, &n, ctx, rsa->meth->bn_mod_exp, |
213 | rsa->meth->bn_mod_exp, rsa->_method_mod_n)) == NULL) { | 213 | rsa->_method_mod_n)) == NULL) { |
214 | RSAerror(ERR_R_BN_LIB); | 214 | RSAerror(ERR_R_BN_LIB); |
215 | goto err; | 215 | goto err; |
216 | } | 216 | } |
217 | CRYPTO_THREADID_current(BN_BLINDING_thread_id(ret)); | 217 | CRYPTO_THREADID_current(BN_BLINDING_thread_id(ret)); |
218 | err: | 218 | |
219 | err: | ||
219 | BN_CTX_end(ctx); | 220 | BN_CTX_end(ctx); |
220 | if (ctx != in_ctx) | 221 | if (ctx != in_ctx) |
221 | BN_CTX_free(ctx); | 222 | BN_CTX_free(ctx); |