diff options
| author | tb <> | 2023-08-08 15:18:24 +0000 |
|---|---|---|
| committer | tb <> | 2023-08-08 15:18:24 +0000 |
| commit | 862d71c9915c2560dcf695acd1713a102fe9c291 (patch) | |
| tree | 336c9666f273c25d0237e56f8a7e4724c8ce93aa /src/lib/libcrypto/rsa | |
| parent | 0bce5ccbdd4e175c85c27bd0306448e87e1ccb04 (diff) | |
| download | openbsd-862d71c9915c2560dcf695acd1713a102fe9c291.tar.gz openbsd-862d71c9915c2560dcf695acd1713a102fe9c291.tar.bz2 openbsd-862d71c9915c2560dcf695acd1713a102fe9c291.zip | |
Drop the unused BN_BLINDING argument of BN_BLINDING_create_param()
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); |
