58 #define ASCON_SYSTEM_SEED_SIZE 32
68 #if defined(ASCON_TRNG_MIXER)
74 #define ASCON_TRNG_MIXER_RATE 8U
int ascon_trng_generate(unsigned char *out, size_t outlen)
Generates a buffer of bytes from the system TRNG source.
uint32_t ascon_trng_generate_32(ascon_trng_state_t *state)
Generates a 32-bit random value for masking operations.
uint64_t ascon_trng_generate_64(ascon_trng_state_t *state)
Generates a 64-bit random value for masking operations.
int ascon_trng_init(ascon_trng_state_t *state)
Initializes the random number source for generating a sequence of masking material at high speed.
int ascon_trng_reseed(ascon_trng_state_t *state)
Reseeds the random number source.
void ascon_trng_free(ascon_trng_state_t *state)
Frees the random number source and destroys any sensitive material.
Direct access to the ASCON permutation primitive.
ascon_state_t state
[snippet_key]
State of the random number source.
Structure of the internal state of the ASCON permutation.