Don't remove CRT parameters from RSA context for ABI compatibility

Albeit possible without conflicts now, this has to wait for the next ABI
changing releaese.
This commit is contained in:
Hanno Becker 2017-10-12 10:53:58 +01:00
parent dfd15b3444
commit 08f055eb4f

View File

@ -97,18 +97,18 @@ typedef struct
mbedtls_mpi P; /*!< 1st prime factor */
mbedtls_mpi Q; /*!< 2nd prime factor */
#if !defined(MBEDTLS_RSA_NO_CRT)
/* DP,DQ,QP are not used in NO_CRT but temporarily kept for ABI
* compatibility. Will be removed on next ABI changing release. */
mbedtls_mpi DP; /*!< D % (P - 1) */
mbedtls_mpi DQ; /*!< D % (Q - 1) */
mbedtls_mpi QP; /*!< 1 / (Q % P) */
#endif /* MBEDTLS_RSA_NO_CRT */
mbedtls_mpi RN; /*!< cached R^2 mod N */
#if !defined(MBEDTLS_RSA_NO_CRT)
/* RP, RQ are not used in NO_CRT but temporarily kept for ABI
* compatibility. Will be removed on next ABI changing release. */
mbedtls_mpi RP; /*!< cached R^2 mod P */
mbedtls_mpi RQ; /*!< cached R^2 mod Q */
#endif /* MBEDTLS_RSA_NO_CRT */
mbedtls_mpi Vi; /*!< cached blinding value */
mbedtls_mpi Vf; /*!< cached un-blinding value */