CTR_DRBG context structure. More...
#include <ctr_drbg.h>
Data Fields | |
unsigned char | counter [16] |
int | reseed_counter |
int | prediction_resistance |
size_t | entropy_len |
int | reseed_interval |
aes_context | aes_ctx |
int(* | f_entropy )(void *, unsigned char *, size_t) |
void * | p_entropy |
CTR_DRBG context structure.
Definition at line 67 of file ctr_drbg.h.
AES context
Definition at line 76 of file ctr_drbg.h.
Referenced by ctr_drbg_init_entropy_len(), ctr_drbg_random_with_add(), and ctr_drbg_update_internal().
unsigned char ctr_drbg_context::counter[16] |
counter (V)
Definition at line 69 of file ctr_drbg.h.
Referenced by ctr_drbg_random_with_add(), and ctr_drbg_update_internal().
amount of entropy grabbed on each (re)seed
Definition at line 73 of file ctr_drbg.h.
Referenced by ctr_drbg_init_entropy_len(), ctr_drbg_reseed(), and ctr_drbg_set_entropy_len().
int(* ctr_drbg_context::f_entropy)(void *, unsigned char *, size_t) |
Referenced by ctr_drbg_init_entropy_len(), and ctr_drbg_reseed().
context for the entropy function
Definition at line 83 of file ctr_drbg.h.
Referenced by ctr_drbg_init_entropy_len(), and ctr_drbg_reseed().
enable prediction resistance (Automatic reseed before every random generation)
Definition at line 71 of file ctr_drbg.h.
Referenced by ctr_drbg_random_with_add(), and ctr_drbg_set_prediction_resistance().
reseed counter
Definition at line 70 of file ctr_drbg.h.
Referenced by ctr_drbg_random_with_add(), and ctr_drbg_reseed().
reseed interval
Definition at line 74 of file ctr_drbg.h.
Referenced by ctr_drbg_init_entropy_len(), ctr_drbg_random_with_add(), and ctr_drbg_set_reseed_interval().