Refactor to prepare for RSA blinding optimisation

This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-10 13:29:30 +02:00
parent 032c34e206
commit ea53a55c0f
2 changed files with 37 additions and 14 deletions

View file

@ -89,6 +89,11 @@ typedef struct
mpi RP; /*!< cached R^2 mod P */
mpi RQ; /*!< cached R^2 mod Q */
#if !defined(POLARSSL_RSA_NO_CRT)
mpi Vi; /*!< cached blinding value */
mpi Vf; /*!< cached un-blinding value */
#endif
int padding; /*!< RSA_PKCS_V15 for 1.5 padding and
RSA_PKCS_v21 for OAEP/PSS */
int hash_id; /*!< Hash identifier of md_type_t as