Go to the documentation of this file.
31 #ifndef _ESP32_S2_CRYPTO_TRNG_H
32 #define _ESP32_S2_CRYPTO_TRNG_H
38 #ifndef ESP32_S2_CRYPTO_TRNG_SUPPORT
39 #define ESP32_S2_CRYPTO_TRNG_SUPPORT ENABLED
40 #elif (ESP32_S2_CRYPTO_TRNG_SUPPORT != ENABLED && ESP32_S2_CRYPTO_TRNG_SUPPORT != DISABLED)
41 #error ESP32_S2_CRYPTO_TRNG_SUPPORT parameter is not valid
General definitions for cryptographic algorithms.
void esp32s2RngInit(void)
RNG module initialization.
error_t trngGetRandomData(uint8_t *data, size_t length)
Get random data from the TRNG module.