diff options
author | tb <> | 2023-08-02 08:44:38 +0000 |
---|---|---|
committer | tb <> | 2023-08-02 08:44:38 +0000 |
commit | 573bb95a0f3f3af6671f0d3f00fd2c7e9ecdfcfe (patch) | |
tree | fe8ccb5d64600cac34ecaa40b819e484d50ae3be /src/lib/libcrypto/rsa/rsa_eay.c | |
parent | a84053cabae35f4a87f7ac66ed02deb3b7c3be52 (diff) | |
download | openbsd-573bb95a0f3f3af6671f0d3f00fd2c7e9ecdfcfe.tar.gz openbsd-573bb95a0f3f3af6671f0d3f00fd2c7e9ecdfcfe.tar.bz2 openbsd-573bb95a0f3f3af6671f0d3f00fd2c7e9ecdfcfe.zip |
Drop the _ex from BN_BLINDING_{convert,invert}_ex()
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_eay.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_eay.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_eay.c b/src/lib/libcrypto/rsa/rsa_eay.c index f6b1d65553..cd0ff9730c 100644 --- a/src/lib/libcrypto/rsa/rsa_eay.c +++ b/src/lib/libcrypto/rsa/rsa_eay.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_eay.c,v 1.62 2023/07/08 12:26:45 beck Exp $ */ | 1 | /* $OpenBSD: rsa_eay.c,v 1.63 2023/08/02 08:44:38 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 | * |
@@ -282,7 +282,7 @@ rsa_blinding_convert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind, BN_CTX *ctx) | |||
282 | * Local blinding: store the unblinding factor | 282 | * Local blinding: store the unblinding factor |
283 | * in BN_BLINDING. | 283 | * in BN_BLINDING. |
284 | */ | 284 | */ |
285 | return BN_BLINDING_convert_ex(f, NULL, b, ctx); | 285 | return BN_BLINDING_convert(f, NULL, b, ctx); |
286 | else { | 286 | else { |
287 | /* | 287 | /* |
288 | * Shared blinding: store the unblinding factor | 288 | * Shared blinding: store the unblinding factor |
@@ -290,7 +290,7 @@ rsa_blinding_convert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind, BN_CTX *ctx) | |||
290 | */ | 290 | */ |
291 | int ret; | 291 | int ret; |
292 | CRYPTO_w_lock(CRYPTO_LOCK_RSA_BLINDING); | 292 | CRYPTO_w_lock(CRYPTO_LOCK_RSA_BLINDING); |
293 | ret = BN_BLINDING_convert_ex(f, unblind, b, ctx); | 293 | ret = BN_BLINDING_convert(f, unblind, b, ctx); |
294 | CRYPTO_w_unlock(CRYPTO_LOCK_RSA_BLINDING); | 294 | CRYPTO_w_unlock(CRYPTO_LOCK_RSA_BLINDING); |
295 | return ret; | 295 | return ret; |
296 | } | 296 | } |
@@ -300,14 +300,14 @@ static int | |||
300 | rsa_blinding_invert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind, BN_CTX *ctx) | 300 | rsa_blinding_invert(BN_BLINDING *b, BIGNUM *f, BIGNUM *unblind, BN_CTX *ctx) |
301 | { | 301 | { |
302 | /* | 302 | /* |
303 | * For local blinding, unblind is set to NULL, and BN_BLINDING_invert_ex | 303 | * For local blinding, unblind is set to NULL, and BN_BLINDING_invert() |
304 | * will use the unblinding factor stored in BN_BLINDING. | 304 | * will use the unblinding factor stored in BN_BLINDING. |
305 | * If BN_BLINDING is shared between threads, unblind must be non-null: | 305 | * If BN_BLINDING is shared between threads, unblind must be non-null: |
306 | * BN_BLINDING_invert_ex will then use the local unblinding factor, | 306 | * BN_BLINDING_invert() will then use the local unblinding factor, |
307 | * and will only read the modulus from BN_BLINDING. | 307 | * and will only read the modulus from BN_BLINDING. |
308 | * In both cases it's safe to access the blinding without a lock. | 308 | * In both cases it's safe to access the blinding without a lock. |
309 | */ | 309 | */ |
310 | return BN_BLINDING_invert_ex(f, unblind, b, ctx); | 310 | return BN_BLINDING_invert(f, unblind, b, ctx); |
311 | } | 311 | } |
312 | 312 | ||
313 | /* signing */ | 313 | /* signing */ |