mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-09 19:31:18 +08:00
Fix error in ctr_drbg
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
b7778b2388
commit
7e5b7f91ca
@ -665,7 +665,7 @@ int mbedtls_ctr_drbg_random_with_add(void *p_rng,
|
|||||||
size_t tmp_len;
|
size_t tmp_len;
|
||||||
|
|
||||||
status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter),
|
status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter),
|
||||||
tmp, MBEDTLS_CTR_DRBG_BLOCKSIZE, &tmp_len);
|
locals.tmp, MBEDTLS_CTR_DRBG_BLOCKSIZE, &tmp_len);
|
||||||
if (status != PSA_SUCCESS) {
|
if (status != PSA_SUCCESS) {
|
||||||
ret = psa_generic_status_to_mbedtls(status);
|
ret = psa_generic_status_to_mbedtls(status);
|
||||||
goto exit;
|
goto exit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user