1 /** 2 * Mbedtls entropy_poll.h file 3 * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 #ifndef MBEDTLS_ENTROPY_POLL_H 8 #define MBEDTLS_ENTROPY_POLL_H 9 #include "mbedtls/build_info.h" 10 #include <stddef.h> 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /** 16 * \brief Entropy poll callback for a hardware source 17 * 18 * 19 * \note This must accept NULL as its first argument. 20 */ 21 int mbedtls_hardware_poll( void *data, 22 unsigned char *output, size_t len, size_t *olen ); 23 24 #ifdef __cplusplus 25 } 26 #endif 27 28 #endif /* entropy_poll.h */ 29