mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-15 18:41:02 +02:00
Add entropy_poll.h in port directory
This commit is contained in:
@@ -8,7 +8,7 @@ if(NOT BOOTLOADER_BUILD)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
idf_component_register(SRCS "esp_crt_bundle/esp_crt_bundle.c"
|
idf_component_register(SRCS "esp_crt_bundle/esp_crt_bundle.c"
|
||||||
INCLUDE_DIRS "port/include" "mbedtls/include" "esp_crt_bundle/include" "."
|
INCLUDE_DIRS "port/include" "mbedtls/include" "esp_crt_bundle/include" "./mbedtls/library"
|
||||||
REQUIRES lwip
|
REQUIRES lwip
|
||||||
PRIV_REQUIRES "${priv_requires}"
|
PRIV_REQUIRES "${priv_requires}"
|
||||||
)
|
)
|
||||||
|
28
components/mbedtls/port/include/entropy_poll.h
Normal file
28
components/mbedtls/port/include/entropy_poll.h
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
/**
|
||||||
|
* Mbedtls entropy_poll.h file
|
||||||
|
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
#ifndef MBEDTLS_ENTROPY_POLL_H
|
||||||
|
#define MBEDTLS_ENTROPY_POLL_H
|
||||||
|
#include "mbedtls/build_info.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Entropy poll callback for a hardware source
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* \note This must accept NULL as its first argument.
|
||||||
|
*/
|
||||||
|
int mbedtls_hardware_poll( void *data,
|
||||||
|
unsigned char *output, size_t len, size_t *olen );
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* entropy_poll.h */
|
@@ -19,7 +19,7 @@
|
|||||||
#include "mbedtls/ctr_drbg.h"
|
#include "mbedtls/ctr_drbg.h"
|
||||||
#include "mbedtls/x509.h"
|
#include "mbedtls/x509.h"
|
||||||
#include "mbedtls/ssl.h"
|
#include "mbedtls/ssl.h"
|
||||||
#include "mbedtls/library/entropy_poll.h"
|
#include "entropy_poll.h"
|
||||||
#include "mbedtls/net_sockets.h"
|
#include "mbedtls/net_sockets.h"
|
||||||
#include "mbedtls/error.h"
|
#include "mbedtls/error.h"
|
||||||
#include "mbedtls/debug.h"
|
#include "mbedtls/debug.h"
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
#include "mbedtls/x509_crt.h"
|
#include "mbedtls/x509_crt.h"
|
||||||
#include <mbedtls/entropy.h>
|
#include <mbedtls/entropy.h>
|
||||||
#include <mbedtls/ctr_drbg.h>
|
#include <mbedtls/ctr_drbg.h>
|
||||||
#include "mbedtls/library/entropy_poll.h"
|
#include "entropy_poll.h"
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "test_utils.h"
|
#include "test_utils.h"
|
||||||
|
@@ -36,7 +36,7 @@ which are undefined if the following flag is not defined */
|
|||||||
#include <mbedtls/ecdh.h>
|
#include <mbedtls/ecdh.h>
|
||||||
#include <mbedtls/error.h>
|
#include <mbedtls/error.h>
|
||||||
#include <mbedtls/constant_time.h>
|
#include <mbedtls/constant_time.h>
|
||||||
#include <mbedtls/library/ssl_misc.h>
|
#include <ssl_misc.h>
|
||||||
#include <mbedtls/constant_time.h>
|
#include <mbedtls/constant_time.h>
|
||||||
|
|
||||||
#include <protocomm_security.h>
|
#include <protocomm_security.h>
|
||||||
|
Reference in New Issue
Block a user