mbedtls_hmac_drbg_random() function
Arguments
p_rng
The HMAC_DRBG context. This must be a pointer to a #mbedtls_hmac_drbg_context structure.
output
The buffer to fill.
out_len
The length of the buffer in bytes. This must be at most #MBEDTLS_HMAC_DRBG_MAX_REQUEST.
Return value
\c 0 if successful. #MBEDTLS_ERR_HMAC_DRBG_ENTROPY_SOURCE_FAILED if a call to the entropy source failed. #MBEDTLS_ERR_HMAC_DRBG_REQUEST_TOO_BIG if \p out_len > #MBEDTLS_HMAC_DRBG_MAX_REQUEST.
mbedtls_hmac_drbg_random() is called by 2 functions and calls 1 function:
![]()
mbedtls_hmac_drbg_random()
mbedtls_hmac_drbg_random() writes 1 variable:
![]()
mbedtls_hmac_drbg_random()