Skip to content

Commit fb5bb71

Browse files
committed
test: enable ECP_LIGHT when building the accelerated component
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
1 parent 597ff18 commit fb5bb71

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/scripts/all.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -2371,7 +2371,6 @@ config_psa_crypto_full_all_ec_algs_no_ecp_use_psa () {
23712371
scripts/config.py unset MBEDTLS_ECJPAKE_C
23722372
# Disable ECP module (entirely)
23732373
scripts/config.py unset MBEDTLS_ECP_C
2374-
scripts/config.py unset MBEDTLS_ECP_LIGHT
23752374
fi
23762375

23772376
# Restartable feature is not yet supported by PSA. Once it will in
@@ -2389,8 +2388,7 @@ config_psa_crypto_full_all_ec_algs_no_ecp_use_psa () {
23892388
}
23902389

23912390
# Build and test a configuration where driver accelerates all EC algs while
2392-
# all support and dependencies from ECP and ECP_LIGHT are removed on the library
2393-
# side.
2391+
# all support and dependencies from ECP are removed on the library side.
23942392
#
23952393
# Keep in sync with component_test_psa_crypto_full_reference_all_ec_algs_no_ecp_use_psa()
23962394
component_test_psa_crypto_full_accel_all_ec_algs_no_ecp_use_psa () {
@@ -2420,15 +2418,16 @@ component_test_psa_crypto_full_accel_all_ec_algs_no_ecp_use_psa () {
24202418
# Build the library
24212419
loc_accel_flags="$loc_accel_flags $( echo "$loc_accel_list" | sed 's/[^ ]* */-DMBEDTLS_PSA_ACCEL_&/g' )"
24222420
loc_symbols="-DPSA_CRYPTO_DRIVER_TEST \
2423-
-DMBEDTLS_TEST_LIBTESTDRIVER1"
2421+
-DMBEDTLS_TEST_LIBTESTDRIVER1 \
2422+
-DMBEDTLS_ECP_LIGHT"
24242423
make CFLAGS="$ASAN_CFLAGS -Werror -I../tests/include -I../tests -I../../tests $loc_symbols $loc_accel_flags" LDFLAGS="-ltestdriver1 $ASAN_CFLAGS"
24252424

24262425
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
24272426
not grep mbedtls_ecdsa_ library/ecdsa.o
24282427
not grep mbedtls_ecdh_ library/ecdh.o
24292428
not grep mbedtls_ecjpake_ library/ecjpake.o
24302429
# Also ensure that ECP or RSA modules were not re-enabled
2431-
not grep mbedtls_ecp_ library/ecp.o
2430+
not grep mbedtls_ecp_mul library/ecp.o
24322431

24332432
# Run the tests
24342433
# -------------

0 commit comments

Comments
 (0)