ecc fixed point compile fixes, still need ecc_mul2add

This commit is contained in:
toddouska
2011-11-23 16:11:56 -08:00
parent a72ff97e1c
commit f4a9002bdb
2 changed files with 10 additions and 0 deletions

View File

@ -2455,6 +2455,15 @@ int mp_div_2(fp_int * a, fp_int * b)
return MP_OKAY; return MP_OKAY;
} }
int mp_init_copy(fp_int * a, fp_int * b)
{
fp_init_copy(a, b);
return MP_OKAY;
}
#endif /* HAVE_ECC */ #endif /* HAVE_ECC */
#endif /* USE_FAST_MATH */ #endif /* USE_FAST_MATH */

View File

@ -654,6 +654,7 @@ int mp_to_unsigned_bin (mp_int * a, unsigned char *b);
int mp_montgomery_setup(fp_int *a, fp_digit *rho); int mp_montgomery_setup(fp_int *a, fp_digit *rho);
int mp_isodd(mp_int* a); int mp_isodd(mp_int* a);
int mp_div_2(fp_int * a, fp_int * b); int mp_div_2(fp_int * a, fp_int * b);
int mp_init_copy(fp_int * a, fp_int * b);
#endif #endif
#if defined(HAVE_ECC) || defined(CYASSL_KEY_GEN) #if defined(HAVE_ECC) || defined(CYASSL_KEY_GEN)