5.11.0.0R3
Software Development Kit
 
Loading...
Searching...
No Matches
entropy_poll.h File Reference

Platform-specific and custom entropy polling functions. More...

Macros

#define MBEDTLS_ENTROPY_MIN_HARDCLOCK   4
 
#define MBEDTLS_ENTROPY_MIN_HARDWARE   32
 
#define MBEDTLS_ENTROPY_MIN_HAVEGE   32
 
#define MBEDTLS_ENTROPY_MIN_PLATFORM   32
 

Functions

int mbedtls_hardware_poll (void *data, unsigned char *output, size_t len, size_t *olen)
 Entropy poll callback that provides 0 entropy.
 

Detailed Description

Platform-specific and custom entropy polling functions.

Macro Definition Documentation

◆ MBEDTLS_ENTROPY_MIN_HARDCLOCK

#define MBEDTLS_ENTROPY_MIN_HARDCLOCK   4

◆ MBEDTLS_ENTROPY_MIN_HARDWARE

#define MBEDTLS_ENTROPY_MIN_HARDWARE   32

Minimum for the hardware source

◆ MBEDTLS_ENTROPY_MIN_HAVEGE

#define MBEDTLS_ENTROPY_MIN_HAVEGE   32

Minimum for HAVEGE

◆ MBEDTLS_ENTROPY_MIN_PLATFORM

#define MBEDTLS_ENTROPY_MIN_PLATFORM   32

Minimum for platform source

Function Documentation

◆ mbedtls_hardware_poll()

int mbedtls_hardware_poll ( void * data,
unsigned char * output,
size_t len,
size_t * olen )

Entropy poll callback that provides 0 entropy.

Entropy poll callback for a hardware source

Warning
This is not provided by mbed TLS! See MBEDTLS_ENTROPY_HARDWARE_ALT in config.h.
Note
This must accept NULL as its first argument.