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)