mirror of
https://github.com/openssl/openssl.git
synced 2025-01-06 13:26:43 +08:00
a3207163ef
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) |
||
---|---|---|
.. | ||
asymciphers | ||
ciphers | ||
digests | ||
encode_decode | ||
exchange | ||
include/prov | ||
kdfs | ||
kem | ||
keymgmt | ||
macs | ||
rands | ||
signature | ||
storemgmt | ||
build.info |