23 #ifndef LWCRYPTO_GIFT_PRNG_H
24 #define LWCRYPTO_GIFT_PRNG_H
50 unsigned char state[32];
int gift_prng_fetch(gift_prng_state_t *state, unsigned char *data, size_t size)
Fetches data from a GIFT-128-based PRNG state.
Definition: gift-prng.c:309
void gift_prng_free(gift_prng_state_t *state)
Frees a GIFT-128-based PRNG and destroys all sensitive information.
Definition: gift-prng.c:179
unsigned long long align
Definition: gift-prng.h:54
int gift_prng_generate(unsigned char *data, size_t size)
Fetches random data using a GIFT-128-based PRNG.
Definition: gift-prng.c:314
int gift_prng_init(gift_prng_state_t *state)
Initializes a GIFT-128-based PRNG.
Definition: gift-prng.c:136
void gift_prng_feed(gift_prng_state_t *state, const unsigned char *data, size_t size)
Feeds data into a GIFT-128-based PRNG state to seed it from other sources besides the system TRNG...
Definition: gift-prng.c:217
size_t count
Definition: gift-prng.h:51
size_t limit
Definition: gift-prng.h:52
int gift_prng_reseed(gift_prng_state_t *state)
Forces a GIFT-128-based PRNG to re-seed from the system TRNG.
Definition: gift-prng.c:206
State information for a GIFT-128-based PRNG.
Definition: gift-prng.h:47
void gift_prng_add_ident(const unsigned char *data, size_t size)
Adds unique identification information for this device to the global pool.
Definition: gift-prng.c:124