diff options
author | tb <> | 2023-08-09 12:09:06 +0000 |
---|---|---|
committer | tb <> | 2023-08-09 12:09:06 +0000 |
commit | d7d2735b3bfc925a72116d82cd0515de75328df8 (patch) | |
tree | f4fecd7ecfa8d410a74dcbae6bc89fcfc2d35975 /src/lib/libcrypto/rsa/rsa_local.h | |
parent | bd98bb41d5e625bf39e15b2f99590f61f9496f22 (diff) | |
download | openbsd-d7d2735b3bfc925a72116d82cd0515de75328df8.tar.gz openbsd-d7d2735b3bfc925a72116d82cd0515de75328df8.tar.bz2 openbsd-d7d2735b3bfc925a72116d82cd0515de75328df8.zip |
Rework BN_BLINDING to use pthread_t directly
Instead of CRYPTO_THREADID, which passes pthread_via through unsigned long,
we can use pthread_self() and pthread_equal() directly. This commit keeps
using the awkward 'local' nomenclature as that is used throughout the rsa
code. This will be changed after the blinding code will have been fully
merged into rsa_blinding.c.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_local.h')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_local.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_local.h b/src/lib/libcrypto/rsa/rsa_local.h index 30d18bfa92..51ed925908 100644 --- a/src/lib/libcrypto/rsa/rsa_local.h +++ b/src/lib/libcrypto/rsa/rsa_local.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rsa_local.h,v 1.5 2023/08/09 09:23:03 tb Exp $ */ | 1 | /* $OpenBSD: rsa_local.h,v 1.6 2023/08/09 12:09:06 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 | * |
@@ -159,7 +159,7 @@ BN_BLINDING *BN_BLINDING_new(const BIGNUM *e, const BIGNUM *mod, BN_CTX *ctx, | |||
159 | void BN_BLINDING_free(BN_BLINDING *b); | 159 | void BN_BLINDING_free(BN_BLINDING *b); |
160 | int BN_BLINDING_convert(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); | 160 | int BN_BLINDING_convert(BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *); |
161 | int BN_BLINDING_invert(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); | 161 | int BN_BLINDING_invert(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *); |
162 | CRYPTO_THREADID *BN_BLINDING_thread_id(BN_BLINDING *); | 162 | int BN_BLINDING_is_local(BN_BLINDING *b); |
163 | BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx); | 163 | BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *ctx); |
164 | 164 | ||
165 | __END_HIDDEN_DECLS | 165 | __END_HIDDEN_DECLS |