openssl/crypto/rsa
Matt Caswell 7467c87c6e Ensure RSA PSS correctly returns the right default digest
A default digest of SHA256 was being returned for RSA PSS even if the
PSS parameters indicated a different digest must be used. We change this
so that the correct default digest is returned and additionally mark this
as mandatory for PSS.

This bug had an impact on sig alg selection in libssl. Due to this issue
an incorrect sig alg might be selected in the event that a server is
configured with an RSA-PSS cert with parameter restrictions.

Fixes #9545

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9553)

(cherry picked from commit 9bcc9f973b)
2019-08-09 13:24:14 +01:00
..
build.info Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
rsa_ameth.c Ensure RSA PSS correctly returns the right default digest 2019-08-09 13:24:14 +01:00
rsa_asn1.c Support multi-prime RSA (RFC 8017) 2017-11-21 14:38:42 +08:00
rsa_chk.c rsa/rsa_gen.c: harmonize keygen's ability with RSA_security_bits. 2017-11-28 20:05:48 +01:00
rsa_crpt.c Remove unnecessary #include <openssl/lhash.h> directives. 2017-09-29 07:38:56 +10:00
rsa_depr.c Copyright consolidation 08/10 2016-05-17 14:51:34 -04:00
rsa_err.c make RSA and DSA operations throw MISSING_PRIVATE_KEY if needed, adapt ECDSA 2019-07-31 17:07:44 +03:00
rsa_gen.c Fix Typos 2019-07-31 19:48:30 +02:00
rsa_lib.c Safer memory cleanup in (crypto/rsa/rsa_lib.c) 2018-10-13 21:19:24 +08:00
rsa_locl.h Minor cleanup of the rsa mp limits code 2017-12-13 17:29:01 +01:00
rsa_meth.c Use 'i' as parameter name not 'I'. 2018-09-17 09:53:15 +10:00
rsa_mp.c Set error code on alloc failures 2018-04-03 11:31:16 -04:00
rsa_none.c Fix coding style in crypto/rsa directory 2017-08-25 16:23:07 +01:00
rsa_oaep.c Modify the RSA_private_decrypt functions to check the padding in 2019-03-22 14:48:09 +01:00
rsa_ossl.c make RSA and DSA operations throw MISSING_PRIVATE_KEY if needed, adapt ECDSA 2019-07-31 17:07:44 +03:00
rsa_pk1.c Modify the RSA_private_decrypt functions to check the padding in 2019-03-22 14:48:09 +01:00
rsa_pmeth.c Change default RSA, DSA and DH size to 2048 bit 2019-05-21 16:47:13 +02:00
rsa_prn.c Fix coding style in crypto/rsa directory 2017-08-25 16:23:07 +01:00
rsa_pss.c crypto/rsa/rsa_pss.c: silence coverity warning 2018-09-10 11:03:50 +01:00
rsa_saos.c This part fixes braces around if-else. 2017-08-25 16:23:07 +01:00
rsa_sign.c Implement RSASSA-PKCS1-v1_5 as specified. 2016-11-07 21:04:54 +01:00
rsa_ssl.c Modify the RSA_private_decrypt functions to check the padding in 2019-03-22 14:48:09 +01:00
rsa_x931.c This part fixes braces around if-else. 2017-08-25 16:23:07 +01:00
rsa_x931g.c Update copyright year 2019-05-28 14:49:38 +02:00