mbedtls_ctr_drbg_set_prediction_resistance() function
This function turns prediction resistance on or off. The default value is off.
Arguments
resistance
#MBEDTLS_CTR_DRBG_PR_ON or #MBEDTLS_CTR_DRBG_PR_OFF.
Notes
If enabled, entropy is gathered at the beginning of every call to mbedtls_ctr_drbg_random_with_add() or mbedtls_ctr_drbg_random(). Only use this if your entropy source has sufficient throughput.
mbedtls_ctr_drbg_set_prediction_resistance() is called by 1 function:
![]()
mbedtls_ctr_drbg_set_prediction_resistance()
mbedtls_ctr_drbg_set_prediction_resistance() writes 1 variable:
![]()
mbedtls_ctr_drbg_set_prediction_resistance()