mbedtls_hmac_drbg_update() function
This function updates the state of the HMAC_DRBG context.
Arguments
ctx
The HMAC_DRBG context.
additional
The data to update the state with. If this is \c NULL, there is no additional data.
add_len
Length of \p additional in bytes. Unused if \p additional is \c NULL.
Return value
\c 0 on success, or an error from the underlying hash calculation.
Notes
This function is not thread-safe. It is not safe to call this function if another thread might be concurrently obtaining random numbers from the same context or updating or reseeding the same context.
mbedtls_hmac_drbg_update() is called by 4 functions and calls 6 functions:
![]()
mbedtls_hmac_drbg_update()
mbedtls_hmac_drbg_update() reads 3 variables:
![]()
mbedtls_hmac_drbg_update()