mirror of https://github.com/wolfSSL/wolfBoot.git
review: add additional RSA PSS test and bench coverage
parent
c02019be68
commit
25c0aaa8bd
|
|
@ -50,6 +50,21 @@ jobs:
|
|||
run: ./tools/renode/docker-test.sh "SIGN=RSA4096 WOLFBOOT_SMALL_STACK=1 SPMATH=0"
|
||||
|
||||
|
||||
# RSAPSS2048 TEST
|
||||
- name: Renode Tests RSAPSS2048
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS2048 WOLFBOOT_SMALL_STACK=1 SPMATH=0"
|
||||
|
||||
|
||||
# RSAPSS3072 TEST
|
||||
- name: Renode Tests RSAPSS3072
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS3072 WOLFBOOT_SMALL_STACK=1 SPMATH=0"
|
||||
|
||||
|
||||
# RSAPSS4096 TEST
|
||||
- name: Renode Tests RSAPSS4096
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS4096 WOLFBOOT_SMALL_STACK=1 SPMATH=0"
|
||||
|
||||
|
||||
- name: Upload Output Dir
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -52,3 +52,12 @@ jobs:
|
|||
# RSA4096 TEST: RSA with TFM requires the possibility to allocate
|
||||
# large amount of stack space (about 70KB) which are not available
|
||||
# on the renode target. This test has been disabled.
|
||||
|
||||
|
||||
# RSAPSS2048 TEST
|
||||
- name: Renode Tests RSAPSS2048
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS2048 SPMATH=0"
|
||||
|
||||
|
||||
# RSAPSS3072/RSAPSS4096 TEST: same TFM stack constraint as RSA3072/RSA4096
|
||||
# above. These tests are disabled.
|
||||
|
|
|
|||
|
|
@ -51,6 +51,21 @@ jobs:
|
|||
run: ./tools/renode/docker-test.sh "SIGN=RSA4096 WOLFBOOT_SMALL_STACK=1 NO_ASM=1"
|
||||
|
||||
|
||||
# RSAPSS2048 TEST
|
||||
- name: Renode Tests RSAPSS2048
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS2048 WOLFBOOT_SMALL_STACK=1 NO_ASM=1"
|
||||
|
||||
|
||||
# RSAPSS3072 TEST
|
||||
- name: Renode Tests RSAPSS3072
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS3072 WOLFBOOT_SMALL_STACK=1 NO_ASM=1"
|
||||
|
||||
|
||||
# RSAPSS4096 TEST
|
||||
- name: Renode Tests RSAPSS4096
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS4096 WOLFBOOT_SMALL_STACK=1 NO_ASM=1"
|
||||
|
||||
|
||||
- name: Upload Output Dir
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -60,6 +60,21 @@ jobs:
|
|||
run: ./tools/renode/docker-test.sh "SIGN=RSA4096 NO_ASM=1"
|
||||
|
||||
|
||||
# RSAPSS2048 TEST
|
||||
- name: Renode Tests RSAPSS2048
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS2048 NO_ASM=1"
|
||||
|
||||
|
||||
# RSAPSS3072 TEST
|
||||
- name: Renode Tests RSAPSS3072
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS3072 NO_ASM=1"
|
||||
|
||||
|
||||
# RSAPSS4096 TEST
|
||||
- name: Renode Tests RSAPSS4096
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS4096 NO_ASM=1"
|
||||
|
||||
|
||||
- name: Upload Output Dir
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -66,6 +66,21 @@ jobs:
|
|||
run: ./tools/renode/docker-test.sh "SIGN=RSA4096 WOLFBOOT_SMALL_STACK=1"
|
||||
|
||||
|
||||
# RSAPSS2048 TEST
|
||||
- name: Renode Tests RSAPSS2048
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS2048 WOLFBOOT_SMALL_STACK=1"
|
||||
|
||||
|
||||
# RSAPSS3072 TEST
|
||||
- name: Renode Tests RSAPSS3072
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS3072 WOLFBOOT_SMALL_STACK=1"
|
||||
|
||||
|
||||
# RSAPSS4096 TEST
|
||||
- name: Renode Tests RSAPSS4096
|
||||
run: ./tools/renode/docker-test.sh "SIGN=RSAPSS4096 WOLFBOOT_SMALL_STACK=1"
|
||||
|
||||
|
||||
- name: Upload Output Dir
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -57,6 +57,9 @@ set_benchmark "rsa2048" SIGN=RSA2048
|
|||
set_benchmark "rsa3072" SIGN=RSA3072
|
||||
set_benchmark "rsa4096" SIGN=RSA4096
|
||||
set_benchmark "rsa4096 with sha384" SIGN=RSA4096 HASH=SHA384
|
||||
set_benchmark "rsapss2048" SIGN=RSAPSS2048
|
||||
set_benchmark "rsapss3072" SIGN=RSAPSS3072
|
||||
set_benchmark "rsapss4096" SIGN=RSAPSS4096
|
||||
set_benchmark "ecdsa256" SIGN=ECC256
|
||||
set_benchmark "ecdsa384" SIGN=ECC384
|
||||
set_benchmark "ecdsa521" SIGN=ECC521
|
||||
|
|
|
|||
|
|
@ -86,6 +86,18 @@ ifeq ($(SIGN),RSA4096)
|
|||
SIGN_ARGS+= --rsa4096
|
||||
endif
|
||||
|
||||
ifeq ($(SIGN),RSAPSS2048)
|
||||
SIGN_ARGS+= --rsapss2048
|
||||
endif
|
||||
|
||||
ifeq ($(SIGN),RSAPSS3072)
|
||||
SIGN_ARGS+= --rsapss3072
|
||||
endif
|
||||
|
||||
ifeq ($(SIGN),RSAPSS4096)
|
||||
SIGN_ARGS+= --rsapss4096
|
||||
endif
|
||||
|
||||
ifeq ($(SIGN),LMS)
|
||||
SIGN_ARGS+= --lms
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -1211,6 +1211,18 @@ test-size-all:
|
|||
make clean
|
||||
make test-size SIGN=RSA3072 NO_ASM=1 LIMIT=12600 NO_ARM_ASM=1
|
||||
make keysclean
|
||||
make test-size SIGN=RSAPSS2048 LIMIT=13670 NO_ARM_ASM=1
|
||||
make clean
|
||||
make test-size SIGN=RSAPSS2048 NO_ASM=1 LIMIT=14230 NO_ARM_ASM=1
|
||||
make keysclean
|
||||
make test-size SIGN=RSAPSS3072 LIMIT=13840 NO_ARM_ASM=1
|
||||
make clean
|
||||
make test-size SIGN=RSAPSS3072 NO_ASM=1 LIMIT=14360 NO_ARM_ASM=1
|
||||
make keysclean
|
||||
make test-size SIGN=RSAPSS4096 LIMIT=14010 NO_ARM_ASM=1
|
||||
make clean
|
||||
make test-size SIGN=RSAPSS4096 NO_ASM=1 LIMIT=14550 NO_ARM_ASM=1
|
||||
make keysclean
|
||||
make test-size SIGN=LMS LMS_LEVELS=2 LMS_HEIGHT=5 LMS_WINTERNITZ=8 \
|
||||
WOLFBOOT_SMALL_STACK=0 IMAGE_SIGNATURE_SIZE=2644 \
|
||||
IMAGE_HEADER_SIZE?=5288 LIMIT=7798 NO_ARM_ASM=1
|
||||
|
|
|
|||
Loading…
Reference in New Issue