22#ifndef LIBAARUFORMAT_NGCW_LFG_H
23#define LIBAARUFORMAT_NGCW_LFG_H
36#define NGC_LFG_SEED_SIZE 17
#define NGC_LFG_K
LFG buffer size (number of uint32 words in state).
void ngc_lfg_get_bytes(struct ngc_lfg_ctx *ctx, uint8_t *out, size_t count)
Generate count bytes of junk data into out.
#define NGC_LFG_SEED_SIZE
Number of uint32 words needed to seed the LFG.
void ngc_lfg_set_seed(struct ngc_lfg_ctx *ctx, const uint32_t seed[17])
Initialize the LFG from a 17-word big-endian seed.
size_t ngc_lfg_get_seed(const uint8_t *data, size_t size, size_t data_offset, uint32_t seed_out[17])
Try to extract the LFG seed from a chunk of data.
LFG context holding the 521-word circular buffer and byte position.