mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 19:21:09 +01:00
The get_random entry point was allowed to return partial data on both PSA_SUCCESS and PSA_ERROR_INSUFFICIENT_ENTROPY, but there was no meaningful difference between the two. Keep it simple: PSA_SUCCESS is success but can be partial, and PSA_ERROR_INSUFFICIENT_ENTROPY is an error with no output. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>