23 #ifndef LWCRYPTO_XOODYAK_PRNG_H
24 #define LWCRYPTO_XOODYAK_PRNG_H
49 unsigned char state[48];
size_t limit
Definition: xoodyak-prng.h:51
void xoodyak_prng_feed(xoodyak_prng_state_t *state, const unsigned char *data, size_t size)
Feeds data into a Xoodoo-based PRNG state to seed it from other sources besides the system TRNG...
Definition: xoodyak-prng.c:132
int xoodyak_prng_init(xoodyak_prng_state_t *state)
Initializes a Xoodoo-based PRNG.
Definition: xoodyak-prng.c:89
void xoodyak_prng_free(xoodyak_prng_state_t *state)
Frees a Xoodoo-based PRNG and destroys all sensitive information.
Definition: xoodyak-prng.c:104
size_t count
Definition: xoodyak-prng.h:50
int xoodyak_prng_generate(unsigned char *data, size_t size)
Fetches random data using a Xoodoo-based PRNG.
Definition: xoodyak-prng.c:194
int xoodyak_prng_reseed(xoodyak_prng_state_t *state)
Forces a Xoodoo-based PRNG to re-seed from the system TRNG.
Definition: xoodyak-prng.c:109
void xoodyak_prng_add_ident(const unsigned char *data, size_t size)
Adds unique identification information for this device to the global pool.
Definition: xoodyak-prng.c:79
unsigned long long align
Definition: xoodyak-prng.h:53
State information for a Xoodoo-based PRNG.
Definition: xoodyak-prng.h:46
int xoodyak_prng_fetch(xoodyak_prng_state_t *state, unsigned char *data, size_t size)
Fetches data from a Xoodoo-based PRNG state.
Definition: xoodyak-prng.c:187