openssl/crypto/rsa
Richard Levitte fcd2d5a612 Refactor the computation of API version limits
Previously, the API version limit was indicated with a numeric version
number.  This was "natural" in the pre-3.0.0 because the version was
this simple number.

With 3.0.0, the version is divided into three separate numbers, and
it's only the major number that counts, but we still need to be able
to support pre-3.0.0 version limits.

Therefore, we allow OPENSSL_API_COMPAT to be defined with a pre-3.0.0
style numeric version number or with a simple major number, i.e. can
be defined like this for any application:

    -D OPENSSL_API_COMPAT=0x10100000L
    -D OPENSSL_API_COMPAT=3

Since the pre-3.0.0 numerical version numbers are high, it's easy to
distinguish between a simple major number and a pre-3.0.0 numerical
version number and to thereby support both forms at the same time.

Internally, we define the following macros depending on the value of
OPENSSL_API_COMPAT:

    OPENSSL_API_0_9_8
    OPENSSL_API_1_0_0
    OPENSSL_API_1_1_0
    OPENSSL_API_3

They indicate that functions marked for deprecation in the
corresponding major release shall not be built if defined.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7724)
2018-12-06 12:24:48 +01:00
..
build.info
rsa_ameth.c
rsa_asn1.c
rsa_chk.c
rsa_crpt.c
rsa_depr.c Refactor the computation of API version limits 2018-12-06 12:24:48 +01:00
rsa_err.c Set error code on alloc failures 2018-04-03 11:31:16 -04:00
rsa_gen.c RSA key generation: ensure BN_mod_inverse and BN_mod_exp_mont both get called with BN_FLG_CONSTTIME flag set. 2018-04-16 16:14:57 +01:00
rsa_lib.c RSA security bits calculation 2018-10-23 08:01:48 +10:00
rsa_locl.h
rsa_meth.c Use 'i' as parameter name not 'I'. 2018-09-17 09:14:03 +10:00
rsa_mp.c Set error code on alloc failures 2018-04-03 11:31:16 -04:00
rsa_none.c
rsa_oaep.c rsa/rsa_oaep.c: remove memcpy calls from RSA_padding_check_PKCS1_OAEP. 2018-11-30 12:32:25 +00:00
rsa_ossl.c rsa/rsa_ossl.c: make RSAerr call in rsa_ossl_private_decrypt unconditional. 2018-11-30 12:32:25 +00:00
rsa_pk1.c rsa/rsa_pk1.c: remove memcpy calls from RSA_padding_check_PKCS1_type_2. 2018-11-30 12:32:25 +00:00
rsa_pmeth.c Update copyright year 2018-04-17 15:18:40 +02:00
rsa_prn.c
rsa_pss.c crypto/rsa/rsa_pss.c: silence coverity warning 2018-09-10 11:03:50 +01:00
rsa_saos.c
rsa_sign.c
rsa_ssl.c rsa/rsa_ssl.c: make RSA_padding_check_SSLv23 constant-time. 2018-11-30 12:32:25 +00:00
rsa_x931.c
rsa_x931g.c