the latest tfm version has fp_rand() available, so we can test this now

This commit is contained in:
Steffen Jaeckel
2017-03-22 18:59:56 +01:00
parent a4671110d5
commit fec05471ae
3 changed files with 12 additions and 9 deletions
+8 -1
View File
@@ -699,6 +699,13 @@ static int tfm_ecc_projective_add_point(ecc_point *P, ecc_point *Q, ecc_point *R
#endif
static int set_rand(void *a, int size)
{
LTC_ARGCHK(a != NULL);
fp_rand(a, size);
return CRYPT_OK;
}
const ltc_math_descriptor tfm_desc = {
"TomsFastMath",
@@ -788,7 +795,7 @@ const ltc_math_descriptor tfm_desc = {
&addmod,
&submod,
NULL,
set_rand,
};