openssl/providers/implementations
afshinpir a3207163ef Updated rsa_has() for correct validation
CLA: trivial
In RSA, `(n,e)` and `(n,d)` identify public key and private key.
Modulus `n` is the common part. So I updated `rsa_has()` to validate
these pairs correctly. `OSSL_KEYMGMT_SELECT_KEYPAIR` is common part
for both public and private key, so I changed it to check `n` of
RSA and for `OSSL_KEYMGMT_SELECT_PUBLIC_KEY`, `e` is checked. Before
this change, if `selection` was `OSSL_KEYMGMT_SELECT_PRIVATE_KEY` and
only `e` and `d` was in the RSA structure, the function returns 1
while it was incorrect.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20455)
2023-03-15 08:28:39 +11:00
..
asymciphers rsa: Add option to disable implicit rejection 2022-12-12 11:30:52 +01:00
ciphers Remove duplicate code 2023-03-15 08:21:52 +11:00
digests S390X: Accelerate keccak XOF 2023-03-07 18:21:51 +01:00
encode_decode Do not create DSA keys without parameters by decoder 2023-02-07 17:05:10 +01:00
exchange
include/prov
kdfs Add option to FIPS module to enforce EMS check during KDF TLS1_PRF. 2023-03-07 18:24:45 +01:00
kem
keymgmt Updated rsa_has() for correct validation 2023-03-15 08:28:39 +11:00
macs Rationalize FIPS sources 2023-02-08 16:20:55 +01:00
rands remove extra define for __NR_getrandom and add some comments 2023-01-06 06:41:13 +00:00
signature Fix size_t/int mismatch in cms_ec.c and rsa_sig.c 2023-03-15 08:24:42 +11:00
storemgmt
build.info