mbedtls_ctr_drbg_set_prediction_resistance() function
This function turns prediction resistance on or off. The default value is off.
Arguments
ctx
The CTR_DRBG context.
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(). Only use this if your entropy source has sufficient throughput.
Data read by mbedtls_ctr_drbg_set_prediction_resistance()
Data written by mbedtls_ctr_drbg_set_prediction_resistance()
mbedtls_ctr_drbg_set_prediction_resistance()