diff --git a/wolfcrypt/src/wolfmath.c b/wolfcrypt/src/wolfmath.c index 1fec1e070..40245ffd7 100644 --- a/wolfcrypt/src/wolfmath.c +++ b/wolfcrypt/src/wolfmath.c @@ -71,7 +71,6 @@ #endif -#if (!defined(WOLFSSL_SP_MATH) && !defined(WOLFSSL_SP_MATH_ALL)) int get_digit_count(mp_int* a) { if (a == NULL) @@ -79,7 +78,6 @@ int get_digit_count(mp_int* a) return a->used; } -#endif mp_digit get_digit(mp_int* a, int n) { diff --git a/wolfssl/wolfcrypt/sp_int.h b/wolfssl/wolfcrypt/sp_int.h index 1e5b4be83..dd3f95469 100644 --- a/wolfssl/wolfcrypt/sp_int.h +++ b/wolfssl/wolfcrypt/sp_int.h @@ -558,11 +558,6 @@ typedef struct sp_ecc_ctx { } \ a->used = ii + 1; \ } while (0) -/* Get the count of digits in the multi-precision number. - * - * @param [in] a SP integer to use. - */ -#define sp_get_digit_count(a) (((a) == NULL) ? 0 : ((sp_int*)(a))->used) /* Check the compiled and linked math implementation are the same. * Use the number of bits in a digit as indication of how code was compiled. @@ -819,7 +814,6 @@ WOLFSSL_API word32 CheckRunTimeFastMath(void); #define mp_abs sp_abs #define mp_isneg sp_isneg #define mp_clamp sp_clamp -#define get_digit_count sp_get_digit_count /* One to one mappings. */ #define mp_init sp_init