mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
all.sh: fix test components using accelerated curves
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
05c25cbaf9
commit
3fe105b042
@ -2294,12 +2294,8 @@ component_test_psa_crypto_config_accel_ecdsa () {
|
|||||||
|
|
||||||
# Algorithms and key types to accelerate
|
# Algorithms and key types to accelerate
|
||||||
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
||||||
$(helper_get_psa_key_type_list "ECC")"
|
$(helper_get_psa_key_type_list "ECC") \
|
||||||
|
$(helper_get_psa_curve_list)"
|
||||||
# Note: Those are handled in a special way by the libtestdriver machinery,
|
|
||||||
# so we only want to include them in the accel list when building the main
|
|
||||||
# libraries, hence the use of a separate variable.
|
|
||||||
loc_curve_list="$(helper_get_psa_curve_list)"
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
@ -2324,7 +2320,7 @@ component_test_psa_crypto_config_accel_ecdsa () {
|
|||||||
|
|
||||||
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
||||||
|
|
||||||
helper_libtestdriver1_make_main "$loc_accel_list $loc_curve_list"
|
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||||
|
|
||||||
# Make sure this was not re-enabled by accident (additive config)
|
# Make sure this was not re-enabled by accident (additive config)
|
||||||
not grep mbedtls_ecdsa_ library/ecdsa.o
|
not grep mbedtls_ecdsa_ library/ecdsa.o
|
||||||
@ -2341,12 +2337,8 @@ component_test_psa_crypto_config_accel_ecdh () {
|
|||||||
|
|
||||||
# Algorithms and key types to accelerate
|
# Algorithms and key types to accelerate
|
||||||
loc_accel_list="ALG_ECDH \
|
loc_accel_list="ALG_ECDH \
|
||||||
$(helper_get_psa_key_type_list "ECC")"
|
$(helper_get_psa_key_type_list "ECC") \
|
||||||
|
$(helper_get_psa_curve_list)"
|
||||||
# Note: Those are handled in a special way by the libtestdriver machinery,
|
|
||||||
# so we only want to include them in the accel list when building the main
|
|
||||||
# libraries, hence the use of a separate variable.
|
|
||||||
loc_curve_list="$(helper_get_psa_curve_list)"
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
@ -2369,7 +2361,7 @@ component_test_psa_crypto_config_accel_ecdh () {
|
|||||||
|
|
||||||
helper_libtestdriver1_make_drivers "$loc_accel_list"
|
helper_libtestdriver1_make_drivers "$loc_accel_list"
|
||||||
|
|
||||||
helper_libtestdriver1_make_main "$loc_accel_list $loc_curve_list"
|
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||||
|
|
||||||
# Make sure this was not re-enabled by accident (additive config)
|
# Make sure this was not re-enabled by accident (additive config)
|
||||||
not grep mbedtls_ecdh_ library/ecdh.o
|
not grep mbedtls_ecdh_ library/ecdh.o
|
||||||
@ -2443,12 +2435,8 @@ component_test_psa_crypto_config_accel_pake() {
|
|||||||
msg "build: full with accelerated PAKE"
|
msg "build: full with accelerated PAKE"
|
||||||
|
|
||||||
loc_accel_list="ALG_JPAKE \
|
loc_accel_list="ALG_JPAKE \
|
||||||
$(helper_get_psa_key_type_list "ECC")"
|
$(helper_get_psa_key_type_list "ECC") \
|
||||||
|
$(helper_get_psa_curve_list)"
|
||||||
# Note: Those are handled in a special way by the libtestdriver machinery,
|
|
||||||
# so we only want to include them in the accel list when building the main
|
|
||||||
# libraries, hence the use of a separate variable.
|
|
||||||
loc_curve_list="$(helper_get_psa_curve_list)"
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
@ -2464,7 +2452,7 @@ component_test_psa_crypto_config_accel_pake() {
|
|||||||
|
|
||||||
helper_libtestdriver1_make_drivers "$loc_accel_list"
|
helper_libtestdriver1_make_drivers "$loc_accel_list"
|
||||||
|
|
||||||
helper_libtestdriver1_make_main "$loc_accel_list $loc_curve_list"
|
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||||
|
|
||||||
# Make sure this was not re-enabled by accident (additive config)
|
# Make sure this was not re-enabled by accident (additive config)
|
||||||
not grep mbedtls_ecjpake_init library/ecjpake.o
|
not grep mbedtls_ecjpake_init library/ecjpake.o
|
||||||
@ -2487,12 +2475,8 @@ component_test_psa_crypto_config_accel_ecc_some_key_types () {
|
|||||||
KEY_TYPE_ECC_PUBLIC_KEY \
|
KEY_TYPE_ECC_PUBLIC_KEY \
|
||||||
KEY_TYPE_ECC_KEY_PAIR_BASIC \
|
KEY_TYPE_ECC_KEY_PAIR_BASIC \
|
||||||
KEY_TYPE_ECC_KEY_PAIR_IMPORT \
|
KEY_TYPE_ECC_KEY_PAIR_IMPORT \
|
||||||
KEY_TYPE_ECC_KEY_PAIR_EXPORT"
|
KEY_TYPE_ECC_KEY_PAIR_EXPORT \
|
||||||
|
$(helper_get_psa_curve_list)"
|
||||||
# Note: Curves are handled in a special way by the libtestdriver machinery,
|
|
||||||
# so we only want to include them in the accel list when building the main
|
|
||||||
# libraries, hence the use of a separate variable.
|
|
||||||
loc_curve_list="$(helper_get_psa_curve_list)"
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
@ -2525,7 +2509,7 @@ component_test_psa_crypto_config_accel_ecc_some_key_types () {
|
|||||||
ALG_SHA3_224 ALG_SHA3_256 ALG_SHA3_384 ALG_SHA3_512"
|
ALG_SHA3_224 ALG_SHA3_256 ALG_SHA3_384 ALG_SHA3_512"
|
||||||
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
||||||
|
|
||||||
helper_libtestdriver1_make_main "$loc_accel_list $loc_curve_list"
|
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||||
|
|
||||||
# ECP should be re-enabled but not the others
|
# ECP should be re-enabled but not the others
|
||||||
not grep mbedtls_ecdh_ library/ecdh.o
|
not grep mbedtls_ecdh_ library/ecdh.o
|
||||||
@ -2554,12 +2538,6 @@ common_test_psa_crypto_config_accel_ecc_some_curves () {
|
|||||||
|
|
||||||
msg "build: crypto_full minus PK with accelerated EC algs and $desc curves"
|
msg "build: crypto_full minus PK with accelerated EC algs and $desc curves"
|
||||||
|
|
||||||
# Algorithms and key types to accelerate
|
|
||||||
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
|
||||||
ALG_ECDH \
|
|
||||||
ALG_JPAKE \
|
|
||||||
$(helper_get_psa_key_type_list "ECC")"
|
|
||||||
|
|
||||||
# Note: Curves are handled in a special way by the libtestdriver machinery,
|
# Note: Curves are handled in a special way by the libtestdriver machinery,
|
||||||
# so we only want to include them in the accel list when building the main
|
# so we only want to include them in the accel list when building the main
|
||||||
# libraries, hence the use of a separate variable.
|
# libraries, hence the use of a separate variable.
|
||||||
@ -2583,6 +2561,13 @@ common_test_psa_crypto_config_accel_ecc_some_curves () {
|
|||||||
loc_curve_list=$loc_non_weierstrass_list
|
loc_curve_list=$loc_non_weierstrass_list
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Algorithms and key types to accelerate
|
||||||
|
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
||||||
|
ALG_ECDH \
|
||||||
|
ALG_JPAKE \
|
||||||
|
$(helper_get_psa_key_type_list "ECC") \
|
||||||
|
$loc_curve_list"
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
|
|
||||||
@ -2702,12 +2687,8 @@ component_test_psa_crypto_config_accel_ecc_ecp_light_only () {
|
|||||||
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
||||||
ALG_ECDH \
|
ALG_ECDH \
|
||||||
ALG_JPAKE \
|
ALG_JPAKE \
|
||||||
$(helper_get_psa_key_type_list "ECC")"
|
$(helper_get_psa_key_type_list "ECC") \
|
||||||
|
$(helper_get_psa_curve_list)"
|
||||||
# Note: Those are handled in a special way by the libtestdriver machinery,
|
|
||||||
# so we only want to include them in the accel list when building the main
|
|
||||||
# libraries, hence the use of a separate variable.
|
|
||||||
loc_curve_list="$(helper_get_psa_curve_list)"
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
@ -2727,7 +2708,7 @@ component_test_psa_crypto_config_accel_ecc_ecp_light_only () {
|
|||||||
ALG_SHA3_224 ALG_SHA3_256 ALG_SHA3_384 ALG_SHA3_512"
|
ALG_SHA3_224 ALG_SHA3_256 ALG_SHA3_384 ALG_SHA3_512"
|
||||||
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
||||||
|
|
||||||
helper_libtestdriver1_make_main "$loc_accel_list $loc_curve_list"
|
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||||
|
|
||||||
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
|
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
|
||||||
not grep mbedtls_ecdsa_ library/ecdsa.o
|
not grep mbedtls_ecdsa_ library/ecdsa.o
|
||||||
@ -2810,12 +2791,8 @@ component_test_psa_crypto_config_accel_ecc_no_ecp_at_all () {
|
|||||||
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
||||||
ALG_ECDH \
|
ALG_ECDH \
|
||||||
ALG_JPAKE \
|
ALG_JPAKE \
|
||||||
$(helper_get_psa_key_type_list "ECC")"
|
$(helper_get_psa_key_type_list "ECC") \
|
||||||
|
$(helper_get_psa_curve_list)"
|
||||||
# Note: Those are handled in a special way by the libtestdriver machinery,
|
|
||||||
# so we only want to include them in the accel list when building the main
|
|
||||||
# libraries, hence the use of a separate variable.
|
|
||||||
loc_curve_list="$(helper_get_psa_curve_list)"
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
@ -2835,7 +2812,7 @@ component_test_psa_crypto_config_accel_ecc_no_ecp_at_all () {
|
|||||||
|
|
||||||
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
||||||
|
|
||||||
helper_libtestdriver1_make_main "$loc_accel_list $loc_curve_list"
|
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||||
|
|
||||||
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
|
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
|
||||||
not grep mbedtls_ecdsa_ library/ecdsa.o
|
not grep mbedtls_ecdsa_ library/ecdsa.o
|
||||||
@ -2981,7 +2958,8 @@ common_test_psa_crypto_config_accel_ecc_ffdh_no_bignum () {
|
|||||||
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
loc_accel_list="ALG_ECDSA ALG_DETERMINISTIC_ECDSA \
|
||||||
ALG_ECDH \
|
ALG_ECDH \
|
||||||
ALG_JPAKE \
|
ALG_JPAKE \
|
||||||
$(helper_get_psa_key_type_list "ECC")"
|
$(helper_get_psa_key_type_list "ECC") \
|
||||||
|
$(helper_get_psa_curve_list)"
|
||||||
# Optionally we can also add DH to the list of accelerated items
|
# Optionally we can also add DH to the list of accelerated items
|
||||||
if [ "$test_target" = "ECC_DH" ]; then
|
if [ "$test_target" = "ECC_DH" ]; then
|
||||||
loc_accel_list="$loc_accel_list \
|
loc_accel_list="$loc_accel_list \
|
||||||
@ -2989,11 +2967,6 @@ common_test_psa_crypto_config_accel_ecc_ffdh_no_bignum () {
|
|||||||
$(helper_get_psa_key_type_list "DH")"
|
$(helper_get_psa_key_type_list "DH")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Note: Those are handled in a special way by the libtestdriver machinery,
|
|
||||||
# so we only want to include them in the accel list when building the main
|
|
||||||
# libraries, hence the use of a separate variable.
|
|
||||||
loc_curve_list="$(helper_get_psa_curve_list)"
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
# ---------
|
# ---------
|
||||||
|
|
||||||
@ -3012,7 +2985,7 @@ common_test_psa_crypto_config_accel_ecc_ffdh_no_bignum () {
|
|||||||
|
|
||||||
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
helper_libtestdriver1_make_drivers "$loc_accel_list" "$loc_extra_list"
|
||||||
|
|
||||||
helper_libtestdriver1_make_main "$loc_accel_list $loc_curve_list"
|
helper_libtestdriver1_make_main "$loc_accel_list"
|
||||||
|
|
||||||
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
|
# Make sure any built-in EC alg was not re-enabled by accident (additive config)
|
||||||
not grep mbedtls_ecdsa_ library/ecdsa.o
|
not grep mbedtls_ecdsa_ library/ecdsa.o
|
||||||
|
Loading…
x
Reference in New Issue
Block a user