mirror of
https://github.com/espressif/mbedtls.git
synced 2025-06-10 21:12:46 +08:00
Fix a build error when MBEDTLS_PSA_INJECT_ENTROPY is enabled
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
4e73afe6ed
commit
9a9d5eea53
2
ChangeLog.d/inject-entropy.txt
Normal file
2
ChangeLog.d/inject-entropy.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Bugfix
|
||||
* Fix the build with MBEDTLS_PSA_INJECT_ENTROPY. Fixes #7516.
|
@ -5066,6 +5066,10 @@ exit:
|
||||
/* Random generation */
|
||||
/****************************************************************/
|
||||
|
||||
#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
|
||||
#include "mbedtls/entropy_poll.h"
|
||||
#endif
|
||||
|
||||
/** Initialize the PSA random generator.
|
||||
*/
|
||||
static void mbedtls_psa_random_init(mbedtls_psa_random_context_t *rng)
|
||||
@ -5200,8 +5204,6 @@ int mbedtls_psa_get_random(void *p_rng,
|
||||
#endif /* MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG */
|
||||
|
||||
#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
|
||||
#include "mbedtls/entropy_poll.h"
|
||||
|
||||
psa_status_t mbedtls_psa_inject_entropy(const uint8_t *seed,
|
||||
size_t seed_size)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user