23 #ifndef NOISE_RANDSTATE_H
24 #define NOISE_RANDSTATE_H
42 size_t padded_len,
int padding_mode);
int noise_randstate_pad(NoiseRandState *state, uint8_t *payload, size_t orig_len, size_t padded_len, int padding_mode)
Adds padding bytes to the end of a message payload.
int noise_randstate_generate(NoiseRandState *state, uint8_t *buffer, size_t len)
Generates random bytes for use by the application.
int noise_randstate_new(NoiseRandState **state)
Creates a new random number generator.
struct NoiseRandState_s NoiseRandState
Opaque object that represents a random number generator.
int noise_randstate_generate_simple(uint8_t *buffer, size_t len)
Generates random data without first creating a RandState object.
int noise_randstate_reseed(NoiseRandState *state)
Reseeds the random number generator from operating system entropy.
int noise_randstate_free(NoiseRandState *state)
Frees a RandState object after destroying all sensitive material.