From bb7bcfd87704b02980f5186fc5176816ffa5d2be Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Thu, 3 May 2018 13:41:23 -0600 Subject: [PATCH] expose mp_toradix() when WOLFSSL_PUBLIC_MP is defined --- wolfcrypt/src/integer.c | 3 ++- wolfcrypt/src/tfm.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/integer.c b/wolfcrypt/src/integer.c index 62d756826..84290c64f 100644 --- a/wolfcrypt/src/integer.c +++ b/wolfcrypt/src/integer.c @@ -4813,7 +4813,8 @@ int mp_read_radix (mp_int * a, const char *str, int radix) #endif /* !defined(NO_DSA) || defined(HAVE_ECC) */ #if defined(WOLFSSL_KEY_GEN) || defined(HAVE_COMP_KEY) || \ - defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL) + defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL) || \ + defined(WOLFSSL_PUBLIC_MP) /* returns size of ASCII representation */ int mp_radix_size (mp_int *a, int radix, int *size) diff --git a/wolfcrypt/src/tfm.c b/wolfcrypt/src/tfm.c index b190fcf33..8690ecf06 100644 --- a/wolfcrypt/src/tfm.c +++ b/wolfcrypt/src/tfm.c @@ -2606,7 +2606,8 @@ int mp_montgomery_calc_normalization(mp_int *a, mp_int *b) #if defined(WOLFSSL_KEY_GEN) || defined(HAVE_COMP_KEY) || \ - defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL) + defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL) || \ + defined(WOLFSSL_PUBLIC_MP) #ifdef WOLFSSL_KEY_GEN /* swap the elements of two integers, for cases where you can't simply swap the @@ -3263,7 +3264,8 @@ int mp_set(fp_int *a, fp_digit b) #endif #if defined(WOLFSSL_KEY_GEN) || defined(HAVE_COMP_KEY) || \ - defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL) + defined(WOLFSSL_DEBUG_MATH) || defined(DEBUG_WOLFSSL) || \ + defined(WOLFSSL_PUBLIC_MP) /* returns size of ASCII representation */ int mp_radix_size (mp_int *a, int radix, int *size)