mbedtls/tests
Gilles Peskine e3a1b81cb9 Switch mpi_random_many test function to testing core
The test function mpi_random_many() is the main function for testing the
get-random-in-range function. It validates that the random generator's
output is within the desired range, and performs some basic statistical
checks including checking that small ranges are covered exhaustively.

Switch this function from testing mbedtls_mpi_random() to testing
mbedtls_mpi_core_random(). This does not reduce the test coverage of
mbedtls_mpi_random() because the same properties are now validated
indirectly via mpi_random_values() which checks that mbedtls_mpi_random()
and mbedtls_mpi_core_random() produce identical values for identical inputs.

As of this commit, mpi_random_many() still uses some legacy mpi functions
internally because the corresponding functions don't exist yet in core.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2022-12-01 23:46:31 +01:00
..
.jenkins Add a Jenkinsfile for PR job testing 2018-10-19 16:41:54 +01:00
configs Merge branch 'development' into rfc9146_2 2022-11-14 17:43:15 +00:00
data_files Merge pull request #6663 from davidhorstmann-arm/fix-typo-unsupported 2022-11-29 21:44:27 +01:00
docker/bionic removed changed made to the test/bionic/Dockerfile 2022-09-17 22:20:33 +02:00
git-scripts Fix typographical errors in .md files found by cspell 2022-07-29 13:44:01 +01:00
include Add test function for opaque driver (simply returns PSA_ERROR_NOT_SUPPORTED), and address other review comments. 2022-11-28 14:46:30 +00:00
opt-testcases Add parse function for early data in encrypted extentions 2022-11-22 09:40:07 +00:00
scripts Merge pull request #6698 from wernerlewis/bignum_mod_py 2022-12-01 11:48:14 +00:00
src Minor formatting fixes to address code review comments 2022-11-29 16:53:29 +00:00
suites Switch mpi_random_many test function to testing core 2022-12-01 23:46:31 +01:00
.gitignore tests: Add build of a PSA test driver library 2021-12-06 07:50:27 +01:00
CMakeLists.txt Enable test generation from bignum_mod.py 2022-11-30 14:43:31 +00:00
compat-in-docker.sh Upgrade gnutls-next to 3.7.2 2021-09-02 17:31:10 +08:00
compat.sh Enable all ciphers in OpenSSL >=1.1.0 2022-11-24 22:41:55 +01:00
context-info.sh Modifies tests in context-info.sh 2021-06-16 16:19:53 +01:00
Descriptions.txt Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
make-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
Makefile Enable test generation from bignum_mod.py 2022-11-30 14:43:31 +00:00
ssl-opt-in-docker.sh Upgrade gnutls-next to 3.7.2 2021-09-02 17:31:10 +08:00
ssl-opt.sh Merge pull request #6264 from hannestschofenig/rfc9146_2 2022-11-29 09:25:14 +01:00