1 /*
2  * SPDX-FileCopyrightText: 2017-2021 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #pragma once
7 
8 # include "export.h"
9 # include "randombytes.h"
10 
11 SODIUM_EXPORT
12 extern const struct randombytes_implementation randombytes_esp32_implementation;
13 
14 /* Defining RANDOMBYTES_DEFAULT_IMPLEMENTATION here allows us to compile with the ESP32 hardware
15    implementation as the default. No need to call randombytes_set_implementation().
16 
17    Doing it in the header like this is easier than passing it via a -D argument to gcc.
18 */
19 #undef RANDOMBYTES_DEFAULT_IMPLEMENTATION
20 #define RANDOMBYTES_DEFAULT_IMPLEMENTATION &randombytes_esp32_implementation
21