mbedtls/tests/scripts
Manuel Pégourié-Gonnard 53fb66db12 Add support for RESTARTABLE with internal RNG
Currently we draw pseudo-random numbers at the beginning and end of the main
loop. With ECP_RESTARTABLE, it's possible that between those two occasions we
returned from the multiplication function, hence lost our internal DRBG
context that lives in this function's stack frame. This would result in the
same pseudo-random numbers being used for blinding in multiple places. While
it's not immediately clear that this would give rise to an attack, it's also
absolutely not clear that it doesn't. So let's avoid that by using a DRBG
context that lives inside the restart context and persists across
return/resume cycles. That way the RESTARTABLE case uses exactly the
same pseudo-random numbers as the non-restartable case.

Testing and compile-time options:

- The case ECP_RESTARTABLE && !ECP_NO_INTERNAL_RNG is already tested by
  component_test_no_use_psa_crypto_full_cmake_asan.
- The case ECP_RESTARTABLE && ECP_NO_INTERNAL_RNG didn't have a pre-existing
  test so a component is added.

Testing and runtime options: when ECP_RESTARTABLE is enabled, the test suites
already contain cases where restart happens and cases where it doesn't
(because the operation is short enough or because restart is disabled (NULL
restart context)).

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2020-06-08 09:09:20 +02:00
..
all-in-docker.sh Clean up file prologue comments 2019-06-29 17:45:34 -05:00
all.sh Add support for RESTARTABLE with internal RNG 2020-06-08 09:09:20 +02:00
basic-build-test.sh Enable SSLv3 in the full config 2020-04-20 15:39:36 +02:00
basic-in-docker.sh Restore full tls coverage to remaining scripts 2020-03-23 17:55:31 +01:00
check-doxy-blocks.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
check-files.py Finish the documentation of normalize_path 2020-05-28 18:19:20 +02:00
check-generated-files.sh query_config: Move to programs/test 2020-02-11 19:26:27 +01:00
check-names.sh Move 3rdparty mentions to a separate line 2020-02-19 20:13:29 +01:00
check-python-files.sh Make sure to use a Python 3 pylint 2020-03-24 19:23:41 +01:00
check-test-cases.py Document more methods in Python scripts 2020-04-11 20:23:22 +02:00
curves.pl Invoke config.py instead of config.pl 2019-11-13 14:33:33 +00:00
depends-hashes.pl Adjust depends-hashes.pl to test NO_SHA384 as well 2020-01-06 11:40:23 +01:00
depends-pkalgs.pl Revert "config: Remove TLS and NET options" 2020-03-19 13:55:04 +01:00
docker_env.sh Improve compatibility with firewalled networks 2019-06-29 17:45:34 -05:00
doxygen.sh Add scripts/apidoc_full.sh 2016-01-12 14:48:03 +00:00
gen_ctr_drbg.pl Merge remote-tracking branch 'public/pr/1533' into development 2018-06-27 10:50:58 +01:00
gen_gcm_decrypt.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
gen_gcm_encrypt.pl Use "#!/usr/bin/env perl" as shebang line. 2018-04-04 21:44:29 +00:00
gen_pkcs1_v21_sign_verify.pl Merge remote-tracking branch 'public/pr/1533' into development 2018-06-27 10:50:58 +01:00
generate-afl-tests.sh Added script to split the test case data files 2016-03-09 19:32:09 +00:00
generate_test_code.py Pylint: minor code simplifications 2020-04-11 20:23:22 +02:00
key-exchanges.pl Invoke config.py instead of config.pl in reverted content 2020-03-19 14:23:45 +01:00
list-enum-consts.pl Fix preprocessor directive recognition in list-enum-consts.pl 2019-08-29 16:12:38 +01:00
list-identifiers.sh Make check-names.sh find the right names in 3rdparty 2019-08-19 13:36:44 +01:00
list-macros.sh Revert "check-names: Enable referencing Mbed TLS macros" 2020-03-19 13:55:04 +01:00
list-symbols.sh Invoke config.py instead of config.pl 2019-11-13 14:33:33 +00:00
mbedtls_test.py Pylint: minor code simplifications 2020-04-11 20:23:22 +02:00
psa_collect_statuses.py PSA return status coverage script 2019-09-06 19:28:47 +02:00
recursion.pl Revert "recursion.pl: Don't depend on X.509" 2020-03-19 14:23:45 +01:00
run-test-suites.pl 'make test' must fail if Asan fails 2019-10-21 20:10:21 +02:00
tcp_client.pl Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
test-ref-configs.pl Add comment to help syntax highlighting in editors 2020-03-23 17:55:32 +01:00
test_config_script.py Pylint: explicitly note why we're doing an unchecked subprocess.run 2020-04-11 20:23:22 +02:00
test_generate_test_code.py Pylint: minor code simplifications 2020-04-11 20:23:22 +02:00
test_psa_constant_names.py Pylint: minor code simplifications 2020-04-11 20:23:22 +02:00
test_zeroize.gdb Merge remote-tracking branch 'origin/pr/2332' into development 2019-01-30 15:53:00 +00:00
travis-log-failure.sh Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00