2019-09-09 12:40:40 +01:00
|
|
|
#ifndef _UTILS_PRNG_H_
|
|
|
|
#define _UTILS_PRNG_H_
|
|
|
|
/// @file utils_prng.h
|
|
|
|
/// @brief the interface for adapting PRNG functions.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
|
|
|
|
#include "randombytes.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
unsigned char Key[32];
|
|
|
|
unsigned char V[16];
|
|
|
|
} prng_t;
|
|
|
|
|
2020-11-27 17:55:15 +00:00
|
|
|
int PQCLEAN_RAINBOWICIRCUMZENITHAL_CLEAN_prng_set(prng_t *ctx, const void *prng_seed, unsigned long prng_seedlen);
|
|
|
|
int PQCLEAN_RAINBOWICIRCUMZENITHAL_CLEAN_prng_gen(prng_t *ctx, unsigned char *out, unsigned long outlen);
|
2019-09-09 12:40:40 +01:00
|
|
|
|
|
|
|
#endif // _UTILS_PRNG_H_
|