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
42
43
44
45
46
47
/**
* \file rand_nist.h
* \brief NIST DRBG
*
* SPDX-License-Identifier: MIT
*/
typedef struct OQS_NIST_DRBG_struct;
/**
* Initializes the NIST DRBG with a given seed and with 256-bit security.
*
* @param[in] entropy_input The seed; must be exactly 48 bytes
* @param[in] personalization_string An optional personalization string;
* may be NULL; if not NULL, must be at least 48 bytes long
*/
void ;
/**
* Fills the given memory with the requested number of pseudorandom bytes using the NIST DRBG.
*
* @param[out] random_array Pointer to the memory to fill with (pseudo)random bytes
* @param[in] bytes_to_read The number of random bytes to read into memory
*/
void ;
/**
* Writes the current state of the NIST DRBG into the provided memory.
*/
void ;
/**
* Overwrites the current state of the NIST DRBG from the provided memory.
*/
void ;
// OQS_RAND_NIST_H