mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-30 16:20:11 +00:00
The test function pkcs1_rsaes_v15_encrypt gets its fake-random input for padding from a test parameter. In one test case, the parameter was too short, causing a fallback to rand(). The reference output depends on this random input, so the test data was correct only for a platform with one particular rand() implementation. Supply sufficient fake-random input so that rand() isn't called.