mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 12:53:29 +00:00

1) Fix build issue in mbedtls 2) skip the public headers check in IDF 3)Update Kconfig Macros 4)Remove deprecated config options 5) Update the sha API according to new nomenclature 6) Update mbedtls_rsa_init usage 7) Include mbedtls/build_info.h instead of mbedtls/config.h 8) Dont include check_config.h 9) Add additional error message in esp_blufi_api.h
21 lines
447 B
C
21 lines
447 B
C
#include <mbedtls/build_info.h>
|
|
|
|
#include <sys/types.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <esp_system.h>
|
|
|
|
#include <entropy_poll.h>
|
|
|
|
#ifndef MBEDTLS_ENTROPY_HARDWARE_ALT
|
|
#error "MBEDTLS_ENTROPY_HARDWARE_ALT should always be set in ESP-IDF"
|
|
#endif
|
|
|
|
int mbedtls_hardware_poll( void *data,
|
|
unsigned char *output, size_t len, size_t *olen )
|
|
{
|
|
esp_fill_random(output, len);
|
|
*olen = len;
|
|
return 0;
|
|
}
|