From f4a9002bdb687576a68000d0267f5a802960b562 Mon Sep 17 00:00:00 2001 From: toddouska Date: Wed, 23 Nov 2011 16:11:56 -0800 Subject: [PATCH] ecc fixed point compile fixes, still need ecc_mul2add --- ctaocrypt/src/tfm.c | 9 +++++++++ cyassl/ctaocrypt/tfm.h | 1 + 2 files changed, 10 insertions(+) diff --git a/ctaocrypt/src/tfm.c b/ctaocrypt/src/tfm.c index fb982e6ea..27e4bd188 100644 --- a/ctaocrypt/src/tfm.c +++ b/ctaocrypt/src/tfm.c @@ -2455,6 +2455,15 @@ int mp_div_2(fp_int * a, fp_int * b) 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 /* USE_FAST_MATH */ diff --git a/cyassl/ctaocrypt/tfm.h b/cyassl/ctaocrypt/tfm.h index a71c985a5..f60ec57ab 100644 --- a/cyassl/ctaocrypt/tfm.h +++ b/cyassl/ctaocrypt/tfm.h @@ -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_isodd(mp_int* a); int mp_div_2(fp_int * a, fp_int * b); + int mp_init_copy(fp_int * a, fp_int * b); #endif #if defined(HAVE_ECC) || defined(CYASSL_KEY_GEN)