Added define LTC_RSA_BLINDING to be able to disable rsa blinding

This commit is contained in:
Steffen Jaeckel
2011-03-21 22:50:49 +01:00
parent 380693edd9
commit 8dc8a2d551
6 changed files with 75 additions and 24 deletions
+11
View File
@@ -431,6 +431,15 @@ typedef struct {
@return CRYPT_OK on success
*/
int (*submod)(void *a, void *b, void *c, void *d);
/* ---- misc stuff ---- */
/** Make a pseudo-random mpi
@param a The mpi to make random
@param size The desired length
@return CRYPT_OK on success
*/
int (*rand)(void *a, int size);
} ltc_math_descriptor;
extern ltc_math_descriptor ltc_mp;
@@ -515,6 +524,8 @@ extern const ltc_math_descriptor gmp_desc;
#define mp_tohex(a, b) mp_toradix(a, b, 16)
#define mp_rand(a, b) ltc_mp.rand(a, b)
#endif
/* $Source$ */