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:
parent
5c10eafb2b
commit
a775d73528
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue