Select one of the symbols to view example projects that use it.
 
Outline
#include <mbedtls/build_info.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include "esp_random.h"
#include <entropy_poll.h>
mbedtls_hardware_poll(void *, unsigned char *, size_t, size_t *)
Files
loading...
SourceVuESP-IDF Framework and ExamplesmbedTLSport/esp_hardware.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include <mbedtls/build_info.h> #include <sys/types.h> #include <stdlib.h> #include <stdio.h> #include "esp_random.h" #include <entropy_poll.h>6 includes #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; }{ ... }
Details
Show:
from
Types: Columns: