mbedtls/tests/scripts
Manuel Pégourié-Gonnard 54e3c6593e Fix failures in signature accel test
The test driver library tries to only build what's necessary, but must
use the same PSA_WANT macros as the main library. So, for things that
are not needed, it undefines MBEDTLS_PSA_BUILTIN_xxx and defines
MBEDTLS_PSA_ACCEL_xxx, unless the ACCEL symbol was defined on the
command line, in which case it undefines it and defineds BUILTIN
instead. This negation happens in crypto_config_test_driver_extension.h
and reflects the fact that what we want accelerated in the main library
is what we want built-in in the driver library (and vice versa if we
want to minimize the size of the driver library).

So, the ACCEL symbols in inside the test driver library (while it's
being built, not those on the command line) are a bit of a white lie:
they don't actually mean "there's an accelerator for this" but instead
"I won't include a built-in for this even though the corresponding
PSA_WANT symbol is defined".

This was quite harmless until MD started making dispatch decisions based
on the ACCEL symbols: when it tries to dispatch to an accelerator that
doesn't actually exist, things tend to go badly.

The minimal fix for this is to change how we enable extra hashes in the
test driver library: by defining the ACCEL symbol on the command line,
in the build we'll end up with the BUILTIN symbol (and implementation!)
and no ACCEL symbol, which is exactly what we want.

Long version: https://arm-ce.slack.com/archives/GTM3SM1K5/p1675071671707599

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2023-03-16 09:46:51 +01:00
..
all-in-docker.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
all.sh Fix failures in signature accel test 2023-03-16 09:46:51 +01:00
analyze_outcomes.py Merge pull request #7207 from valeriosetti/issue7140 2023-03-14 09:43:45 +01:00
basic-build-test.sh Merge pull request #6823 from mpg/unify-openssl-variables 2023-01-10 22:10:19 +01:00
basic-in-docker.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
check-doxy-blocks.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-generated-files.sh Add test generation support for the ecp module 2023-01-31 14:40:05 +01:00
check-python-files.sh Don't use parallel jobs for pylint 2022-09-18 21:27:37 +02:00
check_files.py Allow whole Box Drawings range 2023-02-01 13:30:26 +00:00
check_names.py Minor changes to account for CodeParser.parse_identifiers being used in list_internal_identifiers.py 2023-01-16 16:36:31 +00:00
check_test_cases.py New option to list all test cases 2022-01-07 18:34:12 +01:00
depends.py Merge pull request #6493 from AndrzejKurek/pymod 2023-03-02 15:38:47 +01:00
docker_env.sh Point to docker images used in the CI 2022-12-15 10:08:26 +01:00
doxygen.sh Fix typos 2023-02-06 12:54:53 +01:00
gen_ctr_drbg.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_decrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_encrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_pkcs1_v21_sign_verify.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate-afl-tests.sh Don't use test_suite_mpi as an example 2022-10-21 18:56:47 +02:00
generate_bignum_tests.py Remove unused import 2022-12-20 19:52:42 +01:00
generate_ecp_tests.py Keep the description in one place, just refer it 2023-02-13 14:10:23 +01:00
generate_pkcs7_tests.py Fix pylint warning 2023-02-08 16:40:40 +00:00
generate_psa_tests.py Merge pull request #6802 from gilles-peskine-arm/test_suite_psa_crypto_metadata-20221215 2023-01-27 10:05:00 +01:00
generate_test_code.py Preserve line breaks from continued line comments 2022-11-30 16:38:49 +01:00
generate_tls13_compat_tests.py tls13: server: Note down client not being authenticated in SSL context 2022-10-25 20:02:03 +02:00
list-identifiers.sh Fix English typos in comments of check_names and list-identifiers 2021-08-16 10:37:24 +01:00
list_internal_identifiers.py Minor changes to account for CodeParser.parse_identifiers being used in list_internal_identifiers.py 2023-01-16 16:36:31 +00:00
psa_collect_statuses.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
recursion.pl Redo of PR#5345. Fixed spelling and typographical errors found by CodeSpell. 2022-05-11 21:25:51 +01:00
run-test-suites.pl Use .datax for make test, not .data 2022-11-15 23:54:26 +01:00
scripts_path.py Allow tests/scripts/foo.py to import from scripts 2020-12-10 23:16:03 +01:00
set_psa_test_dependencies.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
tcp_client.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test-ref-configs.pl test-ref-configs: clarify configuration-related traces 2022-03-14 19:49:18 +01:00
test_config_script.py Rename config.h to mbedtls_config.h 2021-06-28 09:28:33 +01:00
test_generate_test_code.py Preserve line breaks from continued line comments 2022-11-30 16:38:49 +01:00
test_psa_compliance.py Fix typos prior to release 2022-12-04 17:19:59 +00:00
test_psa_constant_names.py Short-tag AEAD with the nominal length are encoded as nominal AEAD 2022-04-15 11:10:14 +02:00
test_zeroize.gdb Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
translate_ciphers.py Batch cipher translations to go faster 2023-01-26 21:45:45 +01:00
travis-log-failure.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00