mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2025-12-06 07:12:32 +01:00
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> |
||
|---|---|---|
| .. | ||
| .jenkins | ||
| configs | ||
| data_files | ||
| docker/bionic | ||
| git-scripts | ||
| include | ||
| opt-testcases | ||
| scripts | ||
| src | ||
| suites | ||
| .gitignore | ||
| CMakeLists.txt | ||
| compat-in-docker.sh | ||
| compat.sh | ||
| context-info.sh | ||
| Descriptions.txt | ||
| make-in-docker.sh | ||
| Makefile | ||
| ssl-opt-in-docker.sh | ||
| ssl-opt.sh | ||