File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -589,10 +589,10 @@ ifeq ($(ARCH),RISCV64)
589589
590590 ifneq ($(NO_ASM),1)
591591 CFLAGS+ =-DWOLFSSL_RISCV_ASM
592- MATH_OBJS + =$(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-sha256.o \
593- $(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-sha512.o \
594- $(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-sha3.o \
595- $(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-aes.o
592+ WOLFCRYPT_OBJS + =$(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-sha256.o \
593+ $(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-sha512.o \
594+ $(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-sha3.o \
595+ $(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/port/riscv/riscv-64-aes.o
596596 endif
597597endif
598598
Original file line number Diff line number Diff line change 2424#ifndef ENCRYPT_H_INCLUDED
2525#define ENCRYPT_H_INCLUDED
2626
27- #if defined(__WOLFBOOT ) || defined(UNIT_TEST )
27+ #if defined(__WOLFBOOT ) || defined(UNIT_TEST ) || defined( MMU )
2828
2929#include <stdint.h>
3030#include "wolfssl/wolfcrypt/settings.h"
@@ -89,5 +89,5 @@ int wolfBoot_enable_fallback_iv(int enable);
8989void wolfBoot_crypto_set_iv (const uint8_t * nonce , uint32_t iv_counter );
9090#endif
9191
92- #endif /* __WOLFBOOT || UNIT_TEST */
92+ #endif /* __WOLFBOOT || UNIT_TEST || MMU */
9393#endif /* ENCRYPT_H_INCLUDED */
Original file line number Diff line number Diff line change @@ -409,7 +409,6 @@ ifeq ($(SIGN),ML_DSA)
409409 KEYGEN_OPTIONS+ =--ml_dsa
410410 SIGN_OPTIONS+ =--ml_dsa
411411 WOLFCRYPT_OBJS+ = $(ML_DSA_OBJS )
412- WOLFCRYPT_OBJS+ =$(MATH_OBJS )
413412 CFLAGS+ =-D"WOLFBOOT_SIGN_ML_DSA" $(ML_DSA_EXTRA )
414413 ifneq ($(HASH),SHA3)
415414 WOLFCRYPT_OBJS+ =$(WOLFBOOT_LIB_WOLFSSL ) /wolfcrypt/src/sha3.o
Original file line number Diff line number Diff line change @@ -116,9 +116,12 @@ int wolfBoot_initialize_encryption(void)
116116#endif /* EXT_FLASH && EXT_ENCRYPTED */
117117
118118#if !defined(__WOLFBOOT ) && !defined(UNIT_TEST )
119- #define XMEMSET memset
120- #define XMEMCPY memcpy
121- #define XMEMCMP memcmp
119+ /* Avoid redefining if already defined by wolfSSL headers */
120+ #if !defined(XMEMSET )
121+ #define XMEMSET memset
122+ #define XMEMCPY memcpy
123+ #define XMEMCMP memcmp
124+ #endif
122125#endif
123126
124127#ifndef NULL
You can’t perform that action at this time.
0 commit comments