1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// SPDX-License-Identifier: CC0 OR Apache-2.0
/// @file utils_randombytes.h
/// @brief wrappers for randombytes().
///
///
#ifndef _UTILS_RANDOMBYTES_H_
#define _UTILS_RANDOMBYTES_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "config.h"
#include "params.h"
#if defined(_UTILS_SUPERCOP_)||defined(_UTILS_PQM4_)
#include "randombytes.h"
#elif defined(_NIST_KAT_) && defined(_UTILS_OPENSSL_)
#include "rng.h"
#else
#define randombytes PQOV_NAMESPACE(randombytes)
void randombytes(unsigned char *x, unsigned long long xlen);
#endif
#ifdef __cplusplus
}
#endif
#endif // _UTILS_RANDOMBYTES_H_