mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-08 17:42:09 +03:00
test: minor refactoring
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
@@ -2414,8 +2414,7 @@ psa_crypto_config_accel_all_curves_except_one () {
|
|||||||
scripts/config.py set $BUILTIN_CURVE
|
scripts/config.py set $BUILTIN_CURVE
|
||||||
# Accelerate all curves listed in "crypto_config.h" (skipping the ones that
|
# Accelerate all curves listed in "crypto_config.h" (skipping the ones that
|
||||||
# are commented out)
|
# are commented out)
|
||||||
for CURVE in $(sed -n 's/^#define \(PSA_WANT_ECC_[0-9A-Z_a-z]*\).*/\1/p' <"$CRYPTO_CONFIG_H"); do
|
for CURVE in $(sed -n 's/^#define PSA_WANT_\(ECC_[0-9A-Z_a-z]*\).*/\1/p' <"$CRYPTO_CONFIG_H"); do
|
||||||
CURVE=$(echo $CURVE | sed 's/PSA_WANT_//')
|
|
||||||
loc_accel_list="$loc_accel_list $CURVE"
|
loc_accel_list="$loc_accel_list $CURVE"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user