Skip to content

Commit 9d490bf

Browse files
committed
Fixed sha3 signature in update test
1 parent 15218b7 commit 9d490bf

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tools/test.mk

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ ifeq ($(SIGN),RSA2048)
1818
SIGN_TOOL=tools/keytools/sign.py --rsa2048
1919
endif
2020

21+
ifeq ($(HASH),SHA256)
22+
SIGN_TOOL+= --sha256
23+
endif
24+
ifeq ($(HASH),SHA3)
25+
SIGN_TOOL+= --sha3
26+
endif
2127

2228
$(EXPVER):
2329
make -C tools/test-expect-version
@@ -125,7 +131,6 @@ test-erase-ext: FORCE
125131
@make test-spi-off
126132
@make test-tpm-off
127133

128-
129134
test-factory: factory.bin
130135
@make test-reset
131136
@sleep 2
@@ -305,8 +310,6 @@ test-101-forward-update-no-downgrade-RSA2048-SHA3: $(EXPVER) FORCE
305310
test-111-forward-update-no-downgrade-RSA4096-SHA3: $(EXPVER) FORCE
306311
@make test-01-forward-update-no-downgrade SIGN=RSA4096 HASH=SHA3
307312

308-
309-
310313
test-all: clean test-01-forward-update-no-downgrade test-02-forward-update-allow-downgrade test-03-rollback \
311314
test-11-forward-update-no-downgrade-ECC test-13-rollback-ECC test-21-forward-update-no-downgrade-SPI test-23-rollback-SPI \
312315
test-34-forward-self-update \

0 commit comments

Comments
 (0)