13 #define RNG_BAD_MAXLEN -1
14 #define RNG_BAD_OUTBUF -2
15 #define RNG_BAD_REQ_LEN -3
19 unsigned char buffer[16];
22 unsigned char key[32];
23 unsigned char ctr[16];
28 unsigned char Key[32];
35 unsigned char* provided_data,
unsigned char* Key,
unsigned char* V);
40 unsigned char* diversifier,
41 unsigned long maxlen);
46 unsigned char* entropy_input,
47 unsigned char* personalization_string,
48 int security_strength);
int seedexpander(AES_XOF_struct *ctx, unsigned char *x, unsigned long xlen)
int seedexpander_init(AES_XOF_struct *ctx, unsigned char *seed, unsigned char *diversifier, unsigned long maxlen)
void randombytes_init(unsigned char *entropy_input, unsigned char *personalization_string, int security_strength)
int randombytes(unsigned char *x, unsigned long long xlen)
void AES256_CTR_DRBG_Update(unsigned char *provided_data, unsigned char *Key, unsigned char *V)
int reseed_counter
Definition: rng.h:30
int buffer_pos
Definition: rng.h:20
unsigned long length_remaining
Definition: rng.h:21