random: rand32_ctr_drbg: Fix missed device constify change

Device constify PR missed changes needed within the mbedtls
conditional code.

Fixes #28033

Signed-off-by: David Leach <david.leach@nxp.com>
This commit is contained in:
David Leach 2020-09-03 21:36:13 -05:00 committed by Carles Cufí
commit a775d73528

View file

@ -37,7 +37,7 @@ static mbedtls_ctr_drbg_context ctr_ctx;
static int ctr_drbg_entropy_func(void *ctx, unsigned char *buf, size_t len)
{
return entropy_get_entropy(ctx, (void *)buf, len);
return entropy_get_entropy(entropy_driver, (void *)buf, len);
}
#elif defined(CONFIG_TINYCRYPT)
@ -69,7 +69,7 @@ static int ctr_drbg_initialize(void)
ret = mbedtls_ctr_drbg_seed(&ctr_ctx,
ctr_drbg_entropy_func,
entropy_driver,
NULL,
drbg_seed,
sizeof(drbg_seed));