5.13.0.0R1
Software Development Kit
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. More...
 

Detailed Description

Platform-specific and custom entropy polling functions.

Macro Definition Documentation

#define MBEDTLS_ENTROPY_MIN_HARDCLOCK   4
#define MBEDTLS_ENTROPY_MIN_HARDWARE   32

Minimum for the hardware source

#define MBEDTLS_ENTROPY_MIN_HAVEGE   32

Minimum for HAVEGE

#define MBEDTLS_ENTROPY_MIN_PLATFORM   32

Minimum for platform source

Function Documentation

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.