mbedtls_ctr_drbg_set_prediction_resistance() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesmbedTLSmbedtls_ctr_drbg_set_prediction_resistance()

mbedtls_ctr_drbg_set_prediction_resistance() function

This function turns prediction resistance on or off. The default value is off.

Syntax

void mbedtls_ctr_drbg_set_prediction_resistance( mbedtls_ctr_drbg_context *ctx,     int resistance );
Implemented in ctr_drbg.c:139

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.

References

LocationText
ctr_drbg.c:139
void mbedtls_ctr_drbg_set_prediction_resistance( mbedtls_ctr_drbg_context *ctx, int resistance )
ctr_drbg.h:207
void mbedtls_ctr_drbg_set_prediction_resistance( mbedtls_ctr_drbg_context *ctx,

Data Use

Data read by mbedtls_ctr_drbg_set_prediction_resistance()
Data written by mbedtls_ctr_drbg_set_prediction_resistance()
mbedtls_ctr_drbg_set_prediction_resistance()