Skip to content

Commit 567243d

Browse files
touch up autoconf build with xilinx and sp macro guards
1 parent c8188ea commit 567243d

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9323,6 +9323,7 @@ AM_CONDITIONAL([BUILD_HPKE],[test "x$ENABLED_HPKE" = "xyes" || test "x$ENABLED_U
93239323
AM_CONDITIONAL([BUILD_DTLS],[test "x$ENABLED_DTLS" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"])
93249324
AM_CONDITIONAL([BUILD_MAXQ10XX],[test "x$ENABLED_MAXQ10XX" = "xyes"])
93259325
AM_CONDITIONAL([BUILD_ARIA],[test "x$ENABLED_ARIA" = "xyes"])
9326+
AM_CONDITIONAL([BUILD_XILINX],[test "x$ENABLED_XILINX" = "xyes"])
93269327

93279328
if test "$ENABLED_REPRODUCIBLE_BUILD" != "yes" &&
93289329
(test "$ax_enable_debug" = "yes" ||

src/include.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,10 +900,14 @@ endif
900900

901901
endif !BUILD_CRYPTONLY
902902

903+
if BUILD_XILINX
904+
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/xilinx/xil-aesgcm.c
905+
endif
903906

904907
endif !BUILD_FIPS_RAND
905908

906909
if BUILD_ARIA
907910
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/aria/aria-crypt.c
908911
src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/port/aria/aria-cryptocb.c
909912
endif
913+

wolfcrypt/src/sp_int.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7031,7 +7031,7 @@ int sp_mod_d(const sp_int* a, sp_int_digit d, sp_int_digit* r)
70317031

70327032
#if defined(HAVE_ECC) || !defined(NO_DSA) || defined(OPENSSL_EXTRA) || \
70337033
(!defined(NO_RSA) && !defined(WOLFSSL_RSA_VERIFY_ONLY) && \
7034-
!defined(WOLFSSL_RSA_PUBLIC_ONLY))
7034+
!defined(WOLFSSL_RSA_PUBLIC_ONLY)) || defined(WOLFSSL_SP_INVMOD)
70357035
/* Divides a by 2 and stores in r: r = a >> 1
70367036
*
70377037
* @param [in] a SP integer to divide.
@@ -19254,7 +19254,7 @@ int sp_prime_is_prime_ex(const sp_int* a, int trials, int* result, WC_RNG* rng)
1925419254
}
1925519255
#endif /* WOLFSSL_SP_PRIME_GEN */
1925619256

19257-
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)
19257+
#if !defined(NO_RSA) || defined(WOLFSSL_KEY_GEN)
1925819258

1925919259
/* Calculates the Greatest Common Denominator (GCD) of a and b into r.
1926019260
*

wolfssl/wolfcrypt/sp_int.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ MP_API int sp_rand_prime(sp_int* r, int len, WC_RNG* rng, void* heap);
10671067
MP_API int sp_prime_is_prime(const sp_int* a, int t, int* result);
10681068
MP_API int sp_prime_is_prime_ex(const sp_int* a, int t, int* result,
10691069
WC_RNG* rng);
1070-
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)
1070+
#if !defined(NO_RSA) || defined(WOLFSSL_KEY_GEN)
10711071
MP_API int sp_gcd(const sp_int* a, const sp_int* b, sp_int* r);
10721072
#endif
10731073
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN) && \

0 commit comments

Comments
 (0)