@@ -8519,7 +8519,7 @@ static int _sp_mul(const sp_int* a, const sp_int* b, sp_int* r)
85198519#endif
85208520
85218521#ifndef WOLFSSL_SP_SMALL
8522- #if !defined(WOLFSSL_HAVE_SP_ECC ) && defined(HAVE_ECC)
8522+ #if !defined(WOLFSSL_SP_MATH ) && defined(HAVE_ECC)
85238523#if SP_WORD_SIZE == 64
85248524#ifndef SQR_MUL_ASM
85258525/* Multiply a by b and store in r: r = a * b
@@ -9217,7 +9217,7 @@ static int _sp_mul_12(const sp_int* a, const sp_int* b, sp_int* r)
92179217}
92189218#endif /* SQR_MUL_ASM */
92199219#endif /* SP_WORD_SIZE == 32 */
9220- #endif /* !WOLFSSL_HAVE_SP_ECC && HAVE_ECC */
9220+ #endif /* !WOLFSSL_SP_MATH && HAVE_ECC */
92219221
92229222#if defined(SQR_MUL_ASM) && (defined(WOLFSSL_SP_INT_LARGE_COMBA) || \
92239223 (!defined(WOLFSSL_SP_MATH) && defined(WOLFCRYPT_HAVE_SAKKE) && \
@@ -11162,7 +11162,7 @@ int sp_mul(const sp_int* a, const sp_int* b, sp_int* r)
1116211162 }
1116311163 else
1116411164#ifndef WOLFSSL_SP_SMALL
11165- #if !defined(WOLFSSL_HAVE_SP_ECC ) && defined(HAVE_ECC)
11165+ #if !defined(WOLFSSL_SP_MATH ) && defined(HAVE_ECC)
1116611166#if SP_WORD_SIZE == 64
1116711167 if ((a->used == 4) && (b->used == 4)) {
1116811168 err = _sp_mul_4(a, b, r);
@@ -13803,7 +13803,7 @@ static int _sp_sqr(const sp_int* a, sp_int* r)
1380313803#endif /* !WOLFSSL_SP_MATH || !WOLFSSL_SP_SMALL */
1380413804
1380513805#ifndef WOLFSSL_SP_SMALL
13806- #if !defined(WOLFSSL_HAVE_SP_ECC ) && defined(HAVE_ECC)
13806+ #if !defined(WOLFSSL_SP_MATH ) && defined(HAVE_ECC)
1380713807#if SP_WORD_SIZE == 64
1380813808#ifndef SQR_MUL_ASM
1380913809/* Square a and store in r. r = a * a
@@ -14409,7 +14409,7 @@ static int _sp_sqr_12(const sp_int* a, sp_int* r)
1440914409}
1441014410#endif /* SQR_MUL_ASM */
1441114411#endif /* SP_WORD_SIZE == 32 */
14412- #endif /* !WOLFSSL_HAVE_SP_ECC && HAVE_ECC */
14412+ #endif /* !WOLFSSL_SP_MATH && HAVE_ECC */
1441314413
1441414414#if defined(SQR_MUL_ASM) && (defined(WOLFSSL_SP_INT_LARGE_COMBA) || \
1441514415 (!defined(WOLFSSL_SP_MATH) && defined(WOLFCRYPT_HAVE_SAKKE) && \
@@ -15913,7 +15913,7 @@ int sp_sqr(const sp_int* a, sp_int* r)
1591315913 }
1591415914 else
1591515915#ifndef WOLFSSL_SP_SMALL
15916- #if !defined(WOLFSSL_HAVE_SP_ECC ) && defined(HAVE_ECC)
15916+ #if !defined(WOLFSSL_SP_MATH ) && defined(HAVE_ECC)
1591715917#if SP_WORD_SIZE == 64
1591815918 if (a->used == 4) {
1591915919 err = _sp_sqr_4(a, r);
@@ -16249,7 +16249,7 @@ static int _sp_mont_red(sp_int* a, const sp_int* m, sp_int_digit mp)
1624916249 /* mp is SP_WORD_SIZE */
1625016250 bits = SP_WORD_SIZE;
1625116251 }
16252- #ifndef WOLFSSL_HAVE_SP_ECC
16252+ #if !defined(WOLFSSL_SP_MATH) && defined(HAVE_ECC)
1625316253#if SP_WORD_SIZE == 64
1625416254#if SP_INT_DIGITS >= 8
1625516255 else if ((m->used == 4) && (mask == 0)) {
@@ -16439,7 +16439,7 @@ static int _sp_mont_red(sp_int* a, const sp_int* m, sp_int_digit mp)
1643916439 return MP_OKAY;
1644016440 }
1644116441#endif /* SP_WORD_SIZE == 64 | 32 */
16442- #endif /* WOLFSSL_HAVE_SP_ECC */
16442+ #endif /* !WOLFSSL_SP_MATH && HAVE_ECC */
1644316443 else {
1644416444 sp_int_digit l;
1644516445 sp_int_digit h;
0 commit comments