mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-22 09:40:09 +00: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>