pqc/crypto_sign/rainbowVc-cyclic/clean/utils_prng.h

19 lines
471 B
C
Raw Normal View History

2019-06-22 17:17:07 +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 {
2019-07-24 09:15:48 +01:00
unsigned char Key[32];
unsigned char V[16];
2019-06-22 17:17:07 +01:00
} prng_t;
int PQCLEAN_RAINBOWVCCYCLIC_CLEAN_prng_set(prng_t *ctx, const void *prng_seed, unsigned long prng_seedlen);
int PQCLEAN_RAINBOWVCCYCLIC_CLEAN_prng_gen(prng_t *ctx, unsigned char *out, unsigned long outlen);
#endif // _UTILS_PRNG_H_