Skip to content

Commit 47256c8

Browse files
dgarskedanielinux
authored andcommitted
Reduce build size for wolfCrypt and fix Vorago documentation
1 parent 2277dfa commit 47256c8

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

docs/Targets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5058,8 +5058,8 @@ echo -n "pBOOT" > trigger_magic.bin
50585058
./tools/bin-assemble/bin-assemble \
50595059
update.bin \
50605060
0x0 wolfboot.bin \
5061-
0x9800 test-app/image_v1_signed.bin \
5062-
0x24800 test-app/image_v2_signed.bin \
5061+
0xB800 test-app/image_v1_signed.bin \
5062+
0x25800 test-app/image_v2_signed.bin \
50635063
0x3F7FB trigger_magic.bin
50645064

50655065
# Use JLink to load

include/user_settings.h

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ extern int tolower(int c);
141141
# else
142142
# define HAVE_ECC_SIGN
143143
# define HAVE_ECC_VERIFY
144-
#ifndef PKCS11_SMALL
144+
#if !defined(PKCS11_SMALL) && !defined(WOLFCRYPT_TEST) && !defined(WOLFCRYPT_BENCHMARK)
145145
# define HAVE_ECC_CDH
146146
#endif
147147
# define WOLFSSL_SP_MATH
@@ -326,9 +326,11 @@ extern int tolower(int c);
326326
!defined(WOLFCRYPT_TEST) && !defined(WOLFCRYPT_BENCHMARK)
327327
# define NO_SHA256
328328
# endif
329-
#ifndef WOLFSSL_SHA512
330-
#define WOLFSSL_SHA512
331-
#endif
329+
# ifndef WOLFSSL_SHA512
330+
# define WOLFSSL_SHA512
331+
# define WOLFSSL_NOSHA512_224
332+
# define WOLFSSL_NOSHA512_256
333+
# endif
332334
#endif
333335

334336
/* If SP math is enabled determine word size */
@@ -420,8 +422,7 @@ extern int tolower(int c);
420422

421423
#if (defined(WOLFBOOT_TPM_SEAL) && defined(WOLFBOOT_ATA_DISK_LOCK)) || \
422424
defined(WOLFBOOT_ENABLE_WOLFHSM_CLIENT) || \
423-
defined(WOLFBOOT_ENABLE_WOLFHSM_SERVER) || \
424-
defined(WOLFCRYPT_TEST) || defined(WOLFCRYPT_BENCHMARK)
425+
defined(WOLFBOOT_ENABLE_WOLFHSM_SERVER)
425426
# define WOLFSSL_BASE64_ENCODE
426427
#else
427428
# define NO_CODING
@@ -599,6 +600,7 @@ extern int tolower(int c);
599600
#ifndef WOLFSSL_STATIC_MEMORY_TEST_SZ
600601
#define WOLFSSL_STATIC_MEMORY_TEST_SZ (10 * 1024)
601602
#endif
603+
#define WOLFSSL_STATIC_MEMORY_LEAN
602604

603605
/* Enable SP math digit operations */
604606
#define WOLFSSL_SP_MUL_D

0 commit comments

Comments
 (0)