Skip to content

Commit 8bdb050

Browse files
authored
Merge pull request #509 from danielinux/update-wolfssl
Update wolfssl
2 parents 63dd623 + 8386a50 commit 8bdb050

File tree

9 files changed

+16
-15
lines changed

9 files changed

+16
-15
lines changed

.github/workflows/test-x86-fsp-qemu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: install req
1414
run: |
1515
sudo apt-get update
16-
sudo apt-get install --no-install-recommends -y -q nasm gcc-multilib qemu-system-x86 swtpm
16+
sudo apt-get install --no-install-recommends -y -q nasm gcc-multilib qemu-system-x86 swtpm uuid-dev
1717
- name: setup git
1818
run: |
1919
git config --global user.email "[email protected]"

config/examples/sim-tpm-keystore.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TARGET=sim
33
SIGN?=ECC256
44
HASH?=SHA256
55
SPI_FLASH=0
6-
DEBUG=0
6+
DEBUG=1
77
WOLFTPM=1
88

99
# sizes should be multiple of system page size

config/examples/sim-tpm-measured.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TARGET=sim
33
SIGN?=ECC256
44
HASH?=SHA256
55
SPI_FLASH=0
6-
DEBUG=0
6+
DEBUG=1
77
WOLFTPM=1
88

99
# sizes should be multiple of system page size

config/examples/sim-tpm-seal.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TARGET=sim
33
SIGN?=ECC256
44
HASH?=SHA256
55
SPI_FLASH=0
6-
DEBUG=0
6+
DEBUG=1
77
WOLFTPM=1
88

99
# sizes should be multiple of system page size

config/examples/sim-tpm.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ TARGET=sim
44
SIGN?=ECC256
55
HASH?=SHA256
66
SPI_FLASH=0
7-
DEBUG=0
7+
DEBUG=1
88
WOLFTPM=1
99
# enable offloading of asymmetric verify to TPM
1010
WOLFBOOT_TPM_VERIFY?=1

include/user_settings.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ extern int tolower(int c);
421421
# define WOLFSSL_SP_NO_DYN_STACK
422422
# endif
423423
# if !defined(SECURE_PKCS11)
424+
# define NO_WOLFSSL_MEMORY
424425
# define WOLFSSL_NO_MALLOC
425426
# endif
426427
#else

lib/wolfssl

Submodule wolfssl updated 1187 files

src/xmalloc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct xmalloc_slot {
7070
/* SP MATH */
7171
#ifdef WOLFBOOT_SIGN_ECC256
7272
#define MP_SCHEME "SP ECC256"
73-
#define MP_CURVE_SPECS_SIZE (76)
73+
#define MP_CURVE_SPECS_SIZE (72)
7474
#ifdef WOLFSSL_SP_ARM_CORTEX_M_ASM
7575
#define MP_POINT_SIZE (196)
7676
#define MP_DIGITS_BUFFER_SIZE_0 (MP_DIGIT_SIZE * 18 * 8)
@@ -85,7 +85,7 @@ struct xmalloc_slot {
8585
#endif /* WOLFBOOT_SIGN_ECC256 */
8686
#ifdef WOLFBOOT_SIGN_ECC384
8787
#define MP_SCHEME "SP ECC384"
88-
#define MP_CURVE_SPECS_SIZE (108)
88+
#define MP_CURVE_SPECS_SIZE (104)
8989
#ifdef WOLFSSL_SP_ARM_CORTEX_M_ASM
9090
#define MP_POINT_SIZE (292)
9191
#define MP_DIGITS_BUFFER_SIZE_0 (MP_DIGIT_SIZE * 18 * 12)
@@ -101,7 +101,7 @@ struct xmalloc_slot {
101101
#endif /* WOLFBOOT_SIGN_ECC384 */
102102
#ifdef WOLFBOOT_SIGN_ECC521
103103
#define MP_SCHEME "SP ECC521"
104-
#define MP_CURVE_SPECS_SIZE (148)
104+
#define MP_CURVE_SPECS_SIZE (144)
105105
#ifdef WOLFSSL_SP_ARM_CORTEX_M_ASM
106106
#define MP_POINT_SIZE (412)
107107
#define MP_DIGITS_BUFFER_SIZE_0 (MP_DIGIT_SIZE * 18 * 17)

tools/test.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -991,23 +991,23 @@ test-size-all:
991991
make clean
992992
make test-size SIGN=ECC256 NO_ASM=1 LIMIT=13480
993993
make keysclean
994-
make test-size SIGN=RSA2048 LIMIT=11124
994+
make test-size SIGN=RSA2048 LIMIT=11212
995995
make clean
996-
make test-size SIGN=RSA2048 NO_ASM=1 LIMIT=11696
996+
make test-size SIGN=RSA2048 NO_ASM=1 LIMIT=11788
997997
make keysclean
998-
make test-size SIGN=RSA4096 LIMIT=11408
998+
make test-size SIGN=RSA4096 LIMIT=11500
999999
make clean
1000-
make test-size SIGN=RSA4096 NO_ASM=1 LIMIT=11984
1000+
make test-size SIGN=RSA4096 NO_ASM=1 LIMIT=12076
10011001
make keysclean
10021002
make test-size SIGN=ECC384 LIMIT=17504
10031003
make clean
10041004
make test-size SIGN=ECC384 NO_ASM=1 LIMIT=14872
10051005
make keysclean
10061006
make test-size SIGN=ED448 LIMIT=13408
10071007
make keysclean
1008-
make test-size SIGN=RSA3072 LIMIT=11264
1008+
make test-size SIGN=RSA3072 LIMIT=11352
10091009
make clean
1010-
make test-size SIGN=RSA3072 NO_ASM=1 LIMIT=11804
1010+
make test-size SIGN=RSA3072 NO_ASM=1 LIMIT=11892
10111011
make keysclean
10121012
make test-size SIGN=LMS LMS_LEVELS=2 LMS_HEIGHT=5 LMS_WINTERNITZ=8 \
10131013
WOLFBOOT_SMALL_STACK=0 IMAGE_SIGNATURE_SIZE=2644 \

0 commit comments

Comments
 (0)