Update output_length in trng_get_bytes() provided by psa.

pull/8804/head
mohammad1603 2018-11-26 23:39:35 +02:00
parent 88f4f48fac
commit 4cef73d2eb
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ __WEAK int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *o
mbedtls_psa_crypto_free();
((void)(obj));
((void)(output_length));
if (output_length != NULL) {
*output_length = length;
}
return 0;
}