Go to the documentation of this file.
23 #ifndef ASCON_SELECT_TRNG_H
24 #define ASCON_SELECT_TRNG_H
26 #if defined(_WIN32) || defined(__WIN32__) || defined(_WIN64) || \
27 defined(__CYGWIN__) || defined(__CYGWIN32__)
30 #define ASCON_TRNG_WINDOWS 1
31 #define ASCON_TRNG_MIXER 1
33 #elif defined(__linux__) || defined(__APPLE__) || defined(__MACH__) || \
34 defined(__FreeBSD__) || defined(__unix__) || defined(__ANDROID__) || \
38 #define ASCON_TRNG_DEV_RANDOM 1
39 #define ASCON_TRNG_MIXER 1
41 #elif defined(__zephyr__)
45 #include <zephyr/kernel.h>
46 #if defined(CONFIG_CTR_DRBG_CSPRNG_GENERATOR) || \
47 defined(CONFIG_HARDWARE_DEVICE_CS_GENERATOR)
48 #define ASCON_TRNG_ZEPHYR_CSRAND 1
49 #elif defined(CONFIG_BT)
50 #define ASCON_TRNG_ZEPHYR_BTRAND 1
53 #define ASCON_TRNG_NONE 1
55 #define ASCON_TRNG_MIXER 1
57 #elif defined(USE_HAL_DRIVER)
62 #elif defined(__arm__) && defined(__SAM3X8E__) && defined(ARDUINO)
65 #define ASCON_TRNG_DUE 1
67 #elif defined(ESP8266) || defined(ESP32)
70 #define ASCON_TRNG_ESP 1
75 #define ASCON_TRNG_NONE 1
76 #define ASCON_TRNG_MIXER 1