openssl/crypto/rsa
Matt Caswell f53479f98a Optimise locking in rsa_get_blinding()
We optimise locking in rsa_get_blinding() so that we normally take a
read lock, and only fallback to a write lock if we need to. This will
be very slightly slower in the case of single use RSA objects, but should
be significantly better when an RSA object is reused in a multi-threaded
environment. It's probably worth the trade off.

Partially fixes #20286

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20953)
2023-05-30 17:39:29 +01:00
..
build.info
rsa_acvp_test_params.c
rsa_ameth.c signature: Clamp PSS salt len to MD len 2022-12-08 11:02:52 +01:00
rsa_asn1.c
rsa_backend.c
rsa_chk.c Fix the LCM computation in the RSA multiprime key check 2023-04-13 15:23:05 +02:00
rsa_crpt.c
rsa_depr.c
rsa_err.c
rsa_gen.c Make RSA_generate_multi_prime_key() not segfault if e is NULL. 2023-01-12 10:46:22 -05:00
rsa_lib.c
rsa_local.h
rsa_meth.c
rsa_mp_names.c
rsa_mp.c
rsa_none.c
rsa_oaep.c
rsa_ossl.c Optimise locking in rsa_get_blinding() 2023-05-30 17:39:29 +01:00
rsa_pk1.c rsa: add implicit rejection in PKCS#1 v1.5 2022-12-12 11:30:52 +01:00
rsa_pmeth.c rsa: Add option to disable implicit rejection 2022-12-12 11:30:52 +01:00
rsa_prn.c
rsa_pss.c Remove ossl_rsa_pss_params_30_set_maskgenalg(). 2023-03-01 20:04:10 +11:00
rsa_saos.c
rsa_schemes.c
rsa_sign.c Refine the documents of several APIs 2022-12-16 18:59:28 +01:00
rsa_sp800_56b_check.c
rsa_sp800_56b_gen.c Avoid generating RSA keys with p < q 2023-04-28 19:48:46 +02:00
rsa_x931.c
rsa_x931g.c Add libctx to x931 keygen. 2023-05-05 17:11:16 +01:00