Skip to content

Commit e5ba96c

Browse files
authored
Merge pull request #10528 from mpg/prep-rm-ecdh
Avoid references to ecdh.o
2 parents e7b035e + 1c479f8 commit e5ba96c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/scripts/components-configuration-crypto.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ component_test_psa_crypto_config_accel_ecdh () {
616616
helper_libtestdriver1_make_main "$loc_accel_list"
617617

618618
# Make sure this was not re-enabled by accident (additive config)
619-
not grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o
619+
not grep mbedtls_psa_key_agreement_ecdh ${BUILTIN_SRC_PATH}/psa_crypto_ecp.o
620620

621621
# Run the tests
622622
# -------------
@@ -748,7 +748,7 @@ component_test_psa_crypto_config_accel_ecc_some_key_types () {
748748
helper_libtestdriver1_make_main "$loc_accel_list"
749749

750750
# ECP should be re-enabled but not the others
751-
not grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o
751+
not grep mbedtls_psa_key_agreement_ecdh ${BUILTIN_SRC_PATH}/psa_crypto_ecp.o
752752
not grep mbedtls_ecdsa ${BUILTIN_SRC_PATH}/ecdsa.o
753753
not grep mbedtls_ecjpake ${BUILTIN_SRC_PATH}/ecjpake.o
754754
grep mbedtls_ecp ${BUILTIN_SRC_PATH}/ecp.o
@@ -837,7 +837,7 @@ common_test_psa_crypto_config_accel_ecc_some_curves () {
837837
ASAN_CFLAGS="$ASAN_CFLAGS -O0" helper_libtestdriver1_make_main "$loc_accel_list"
838838

839839
# We expect ECDH to be re-enabled for the missing curves
840-
grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o
840+
grep mbedtls_psa_key_agreement_ecdh ${BUILTIN_SRC_PATH}/psa_crypto_ecp.o
841841
# We expect ECP to be re-enabled, however the parts specific to the
842842
# families of curves that are accelerated should be ommited.
843843
# - functions with mxz in the name are specific to Montgomery curves
@@ -930,7 +930,7 @@ component_test_psa_crypto_config_accel_ecc_ecp_light_only () {
930930

931931
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
932932
not grep mbedtls_ecdsa_ ${BUILTIN_SRC_PATH}/ecdsa.o
933-
not grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o
933+
not grep mbedtls_psa_key_agreement_ecdh ${BUILTIN_SRC_PATH}/psa_crypto_ecp.o
934934
not grep mbedtls_ecjpake_ ${BUILTIN_SRC_PATH}/ecjpake.o
935935
not grep mbedtls_ecp_mul ${BUILTIN_SRC_PATH}/ecp.o
936936

@@ -1025,7 +1025,7 @@ component_test_psa_crypto_config_accel_ecc_no_ecp_at_all () {
10251025

10261026
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
10271027
not grep mbedtls_ecdsa_ ${BUILTIN_SRC_PATH}/ecdsa.o
1028-
not grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o
1028+
not grep mbedtls_psa_key_agreement_ecdh ${BUILTIN_SRC_PATH}/psa_crypto_ecp.o
10291029
not grep mbedtls_ecjpake_ ${BUILTIN_SRC_PATH}/ecjpake.o
10301030
# Also ensure that ECP module was not re-enabled
10311031
not grep mbedtls_ecp_ ${BUILTIN_SRC_PATH}/ecp.o
@@ -1171,7 +1171,7 @@ common_test_psa_crypto_config_accel_ecc_ffdh_no_bignum () {
11711171

11721172
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
11731173
not grep mbedtls_ecdsa_ ${BUILTIN_SRC_PATH}/ecdsa.o
1174-
not grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o
1174+
not grep mbedtls_psa_key_agreement_ecdh ${BUILTIN_SRC_PATH}/psa_crypto_ecp.o
11751175
not grep mbedtls_ecjpake_ ${BUILTIN_SRC_PATH}/ecjpake.o
11761176
# Also ensure that ECP, RSA or BIGNUM modules were not re-enabled
11771177
not grep mbedtls_ecp_ ${BUILTIN_SRC_PATH}/ecp.o
@@ -1277,7 +1277,7 @@ component_test_tfm_config_p256m_driver_accel_ec () {
12771277

12781278
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
12791279
not grep mbedtls_ecdsa_ ${BUILTIN_SRC_PATH}/ecdsa.o
1280-
not grep mbedtls_ecdh_ ${BUILTIN_SRC_PATH}/ecdh.o
1280+
not grep mbedtls_psa_key_agreement_ecdh ${BUILTIN_SRC_PATH}/psa_crypto_ecp.o
12811281
not grep mbedtls_ecjpake_ ${BUILTIN_SRC_PATH}/ecjpake.o
12821282
# Also ensure that ECP, RSA or BIGNUM modules were not re-enabled
12831283
not grep mbedtls_ecp_ ${BUILTIN_SRC_PATH}/ecp.o

0 commit comments

Comments
 (0)