libusual
0.1
|
Implements PRNG mode for Keccak sponge function. More...
Data Structures | |
struct | KeccakPRNG |
State structure. More... | |
Functions | |
bool | keccak_prng_init (struct KeccakPRNG *prng, int capacity) |
Setup Keccak with specified capacity. | |
void | keccak_prng_add_data (struct KeccakPRNG *prng, const void *data, size_t len) |
Merge entropy data into state. | |
bool | keccak_prng_extract (struct KeccakPRNG *prng, void *data, size_t len) |
Extract PRNG bytes from state. |
Implements PRNG mode for Keccak sponge function.
bool keccak_prng_init | ( | struct KeccakPRNG * | prng, |
int | capacity | ||
) |
Setup Keccak with specified capacity.
prng | State structure to be initialized. |
capacity | Keccak capacity in bits. |
void keccak_prng_add_data | ( | struct KeccakPRNG * | prng, |
const void * | data, | ||
size_t | len | ||
) |
Merge entropy data into state.
bool keccak_prng_extract | ( | struct KeccakPRNG * | prng, |
void * | data, | ||
size_t | len | ||
) |
Extract PRNG bytes from state.