diff --git a/wolfcrypt/src/tfm.c b/wolfcrypt/src/tfm.c index ca587b543..f39728546 100644 --- a/wolfcrypt/src/tfm.c +++ b/wolfcrypt/src/tfm.c @@ -3078,9 +3078,10 @@ int mp_cnt_lsb(fp_int* a) #if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DSA) /* fast math conversion */ -void mp_set(fp_int *a, fp_digit b) +int mp_set(fp_int *a, fp_digit b) { fp_set(a,b); + return MP_OKAY; } #endif diff --git a/wolfssl/wolfcrypt/tfm.h b/wolfssl/wolfcrypt/tfm.h index 7f51a2eae..6fe7c03bb 100644 --- a/wolfssl/wolfcrypt/tfm.h +++ b/wolfssl/wolfcrypt/tfm.h @@ -671,7 +671,7 @@ int mp_radix_size (mp_int * a, int radix, int *size); #endif #if defined(HAVE_ECC) || !defined(NO_RSA) || !defined(NO_DSA) - void mp_set(fp_int *a, fp_digit b); + int mp_set(fp_int *a, fp_digit b); #endif #if defined(HAVE_ECC) || defined(WOLFSSL_KEY_GEN)