openssl/crypto/rsa
Richard Levitte ca7f7b9518 Fix RSA structure
The first field was called 'pad', but not for the reason one might
think.  It was really a padding int that was always zero, and was
placed first on purpose.  This is to pick up programming errors where
an RSA pointer was passed when an EVP_PKEY pointer should have been,
an makes it look like an EVP_PKEY structure with type EVP_PKEY_NONE,
which effectively avoids any further processing (and unintended
corruption of the RSA structure).

This is only relevant for legacy structure and EVP_PKEY_METHODs.  With
providers, EVP_PKEYs aren't passed to the backend anyway.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11315)
2020-03-14 04:33:24 +01:00
..
build.info PROV: add RSA signature implementation 2020-02-22 01:07:15 +01:00
rsa_aid.c PROV: add RSA signature implementation 2020-02-22 01:07:15 +01:00
rsa_ameth.c EVP: Check that key methods aren't foreign when exporting 2020-03-09 10:54:01 +01:00
rsa_asn1.c
rsa_chk.c
rsa_crpt.c
rsa_depr.c
rsa_err.c
rsa_gen.c Add pairwise consistency self tests to asym keygenerators 2020-03-03 14:02:36 +10:00
rsa_lib.c PROV: Add RSA functionality for key generation 2020-03-12 10:44:02 +01:00
rsa_local.h Fix RSA structure 2020-03-14 04:33:24 +01:00
rsa_meth.c
rsa_mp.c
rsa_none.c
rsa_oaep.c
rsa_ossl.c
rsa_pk1.c
rsa_pmeth.c PROV: add RSA signature implementation 2020-02-22 01:07:15 +01:00
rsa_prn.c
rsa_pss.c
rsa_saos.c
rsa_sign.c PROV: add RSA signature implementation 2020-02-22 01:07:15 +01:00
rsa_sp800_56b_check.c
rsa_sp800_56b_gen.c Change DH_get_nid() to set the value of q if it is not already set 2020-03-07 07:47:58 +10:00
rsa_ssl.c
rsa_x931.c
rsa_x931g.c