mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-03 02:54:01 +00:00
da9746e8ce
Test some cases where mbedtls_mpi_core_random() or mbedtls_mpi_random() should return MBEDTLS_ERR_MPI_NOT_ACCEPTABLE. These test cases use a very small range that makes the NOT_ACCEPTABLE case likely. The test code uses a deterministic RNG whose implementation is in the test framework, so we know that the tests will pass reproducibly unless the implementation the test framework changes. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>