| 1 |
/* |
| 2 |
* Copyright (c) The mldsa-native project authors |
| 3 |
* SPDX-License-Identifier: LicenseRef-PD-hp OR CC0-1.0 OR 0BSD OR MIT-0 OR MIT |
| 4 |
*/ |
| 5 |
|
| 6 |
/* References |
| 7 |
* ========== |
| 8 |
* |
| 9 |
* - [surf] |
| 10 |
* SURF: Simple Unpredictable Random Function |
| 11 |
* Daniel J. Bernstein |
| 12 |
* https://cr.yp.to/papers.html#surf |
| 13 |
*/ |
| 14 |
|
| 15 |
/* Based on @[surf]. */ |
| 16 |
|
| 17 |
#ifndef NOTRANDOMBYTES_H |
| 18 |
#define NOTRANDOMBYTES_H |
| 19 |
|
| 20 |
#include <stdint.h> |
| 21 |
#include <stdlib.h> |
| 22 |
|
| 23 |
/** |
| 24 |
* WARNING |
| 25 |
* |
| 26 |
* The randombytes() implementation in this file is for TESTING ONLY. |
| 27 |
* You MUST NOT use this implementation outside of testing. |
| 28 |
* |
| 29 |
*/ |
| 30 |
|
| 31 |
void randombytes_reset(void); |
| 32 |
int randombytes(uint8_t *buf, size_t n); |
| 33 |
|
| 34 |
#endif /* !NOTRANDOMBYTES_H */ |