Skip to content

Commit 5c00da4

Browse files
Roland Mikheldavidvincze
Roland Mikhel
authored andcommitted
ci: Add test cases for ECDSA using PSA Crypto
Add ECDSA verification tests to the CI using the PSA Crypto API Signed-off-by: Roland Mikhel <[email protected]> Change-Id: I904c8929f355ec791ff28ac7c3e0ca3832b2403d
1 parent fb5507b commit 5c00da4

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/sim.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- "sig-rsa validate-primary-slot ram-load multiimage"
4545
- "sig-rsa validate-primary-slot direct-xip multiimage"
4646
- "sig-ecdsa hw-rollback-protection multiimage"
47+
- "sig-ecdsa-psa,sig-ecdsa-psa sig-p384"
4748
- "ram-load enc-aes256-kw multiimage"
4849
- "ram-load enc-aes256-kw sig-ecdsa-mbedtls multiimage"
4950
runs-on: ubuntu-latest

ci/sim_run.sh

+12-2
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,20 @@ fi
4343
if [[ ! -z $MULTI_FEATURES ]]; then
4444
IFS=','
4545
read -ra multi_features <<< "$MULTI_FEATURES"
46+
47+
# psa crypto tests require single thread mode
48+
TEST_ARGS=''
49+
for features in "${multi_features[@]}"; do
50+
if [[ $features =~ "psa" ]]; then
51+
TEST_ARGS='--test-threads=1'
52+
break
53+
fi
54+
done
55+
4656
for features in "${multi_features[@]}"; do
4757
echo "Running cargo for features=\"${features}\""
48-
time cargo test --no-run --features "$features"
49-
time cargo test --features "$features"
58+
time cargo test --no-run --features "$features" -- $TEST_ARGS
59+
time cargo test --features "$features" -- $TEST_ARGS
5060
rc=$? && [ $rc -ne 0 ] && EXIT_CODE=$rc
5161
done
5262
fi

0 commit comments

Comments
 (0)