Rework BN_BLINDING to use pthread_t directly
authortb <tb@openbsd.org>
Wed, 9 Aug 2023 12:09:06 +0000 (12:09 +0000)
committertb <tb@openbsd.org>
Wed, 9 Aug 2023 12:09:06 +0000 (12:09 +0000)
commit226d4252fa8a9f14200366f16956cf3f39000f7c
tree47f04af4b35da6b5306c22f6990fe39ee95ebd22
parentc5ac8393b86d7549b2b878fd46deeb0e8ee06ae0
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
lib/libcrypto/rsa/rsa_blinding.c
lib/libcrypto/rsa/rsa_eay.c
lib/libcrypto/rsa/rsa_local.h