49#ifndef MBEDTLS_ENTROPY_POLL_H
50#define MBEDTLS_ENTROPY_POLL_H
52#if !defined(MBEDTLS_CONFIG_FILE)
55#include MBEDTLS_CONFIG_FILE
67#define MBEDTLS_ENTROPY_MIN_PLATFORM 32
68#define MBEDTLS_ENTROPY_MIN_HAVEGE 32
69#define MBEDTLS_ENTROPY_MIN_HARDCLOCK 4
70#if !defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
71#define MBEDTLS_ENTROPY_MIN_HARDWARE 32
77#if defined(MBEDTLS_TEST_NULL_ENTROPY)
78 int mbedtls_null_entropy_poll(
void *
data,
79 unsigned char *output,
size_t len,
size_t *olen );
82#if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
87 unsigned char *output,
size_t len,
size_t *olen );
90#if defined(MBEDTLS_HAVEGE_C)
96int mbedtls_havege_poll(
void *
data,
97 unsigned char *output,
size_t len,
size_t *olen );
100#if defined(MBEDTLS_TIMING_C)
105 unsigned char *output,
size_t len,
size_t *olen );
108#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
117int mbedtls_hardware_poll(
void *
data,
118 unsigned char *output,
size_t len,
size_t *olen );
121#if defined(MBEDTLS_ENTROPY_NV_SEED)
127int mbedtls_nv_seed_poll(
void *
data,
128 unsigned char *output,
size_t len,
size_t *olen );
int mbedtls_platform_entropy_poll(void *data, unsigned char *output, size_t len, size_t *olen)
Entropy poll callback that provides 0 entropy.
int mbedtls_hardclock_poll(void *data, unsigned char *output, size_t len, size_t *olen)
mbedtls_timing_hardclock-based entropy poll callback
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data