File entropy_poll.h

Platform-specific and custom entropy polling functions.

Defines

MBEDTLS_ENTROPY_MIN_PLATFORM

Minimum for platform source

MBEDTLS_ENTROPY_MIN_HAVEGE

Minimum for HAVEGE

MBEDTLS_ENTROPY_MIN_HARDCLOCK

Minimum for mbedtls_timing_hardclock()

MBEDTLS_ENTROPY_MIN_HARDWARE

Minimum for the hardware source

Functions

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

Entropy poll callback that provides 0 entropy.

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

HAVEGE based entropy poll callback.

Requires an HAVEGE state as its data pointer.

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

mbedtls_timing_hardclock-based entropy poll callback

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

Entropy poll callback for a hardware source.

Note

This must accept NULL as its first argument.

Warning

This is not provided by mbed TLS! See MBEDTLS_ENTROPY_HARDWARE_ALT in config.h.

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

Entropy poll callback for a non-volatile seed file.

Note

This must accept NULL as its first argument.