Skip to content

Commit 19f328c

Browse files
authored
Merge pull request #36 from wolfSSL/rsa-sha-fix
Link sha256.o module even if sha3 is selected, as it's needed by RSA
2 parents f57a27d + 302f69b commit 19f328c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

arch.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ ARCH_FLASH_OFFSET=0x0
1313
# Default SPI driver name
1414
SPI_TARGET=$(TARGET)
1515

16+
1617
## Hash settings
1718
ifeq ($(HASH),SHA256)
18-
WOLFCRYPT_OBJS+=./lib/wolfssl/wolfcrypt/src/sha256.o
1919
CFLAGS+=-DWOLFBOOT_HASH_SHA256
2020
endif
2121

@@ -25,6 +25,9 @@ ifeq ($(HASH),SHA3)
2525
SIGN_OPTIONS+=--sha3
2626
endif
2727

28+
# Include SHA256 module because it's implicitly needed by RSA
29+
WOLFCRYPT_OBJS+=./lib/wolfssl/wolfcrypt/src/sha256.o
30+
2831
## ARM
2932
ifeq ($(ARCH),ARM)
3033
CROSS_COMPILE:=arm-none-eabi-

0 commit comments

Comments
 (0)