entropy_poll.h
mbedtls/config.h
stddef.h
mbedtls/check_config.h
mbedtls/config.h
entropy_poll.h
limits.h
stddef.h
MBEDTLS_ENTROPY_MIN_PLATFORM
32

Minimum for platform source

MBEDTLS_ENTROPY_MIN_HAVEGE
32

Minimum for HAVEGE

MBEDTLS_ENTROPY_MIN_HARDCLOCK
4

Minimum for mbedtls_timing_hardclock()

MBEDTLS_ENTROPY_MIN_HARDWARE
32

Minimum for the hardware source

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

Entropy poll callback that provides 0 entropy.

Platform-specific entropy poll callback

int int mbedtls_havege_poll (void *data, unsigned char *output, size_t len, size_t *olen) 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 int mbedtls_hardclock_poll (void *data, unsigned char *output, size_t len, size_t *olen) mbedtls_hardclock_poll void * data unsigned char * output size_t len size_t * olen

mbedtls_timing_hardclock-based entropy poll callback

Platform-specific and custom entropy polling functions.

    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */
    #ifndefMBEDTLS_ENTROPY_POLL_H
    #defineMBEDTLS_ENTROPY_POLL_H

    #if!defined(MBEDTLS_CONFIG_FILE)
    #include"mbedtls/config.h"
    #else
    #includeMBEDTLS_CONFIG_FILE
    #endif

    #include<stddef.h>

    #ifdef__cplusplus
    extern"C"{
    #endif

    /*
    *Defaultthresholdsforbuilt-insources,inbytes
    */
    #defineMBEDTLS_ENTROPY_MIN_PLATFORM32
    #defineMBEDTLS_ENTROPY_MIN_HAVEGE32
    #defineMBEDTLS_ENTROPY_MIN_HARDCLOCK4
    #if!defined(MBEDTLS_ENTROPY_MIN_HARDWARE)
    #defineMBEDTLS_ENTROPY_MIN_HARDWARE32
    #endif

    #ifdefined(MBEDTLS_TEST_NULL_ENTROPY)
    intmbedtls_null_entropy_poll(void*data,
    unsignedchar*output,size_tlen,size_t*olen);
    #endif

    #if!defined(MBEDTLS_NO_PLATFORM_ENTROPY)
    intmbedtls_platform_entropy_poll(void*data,
    unsignedchar*output,size_tlen,size_t*olen);
    #endif

    #ifdefined(MBEDTLS_HAVEGE_C)
    intmbedtls_havege_poll(void*data,
    unsignedchar*output,size_tlen,size_t*olen);
    #endif

    #ifdefined(MBEDTLS_TIMING_C)
    intmbedtls_hardclock_poll(void*data,
    unsignedchar*output,size_tlen,size_t*olen);
    #endif

    #ifdefined(MBEDTLS_ENTROPY_HARDWARE_ALT)
    intmbedtls_hardware_poll(void*data,
    unsignedchar*output,size_tlen,size_t*olen);
    #endif

    #ifdefined(MBEDTLS_ENTROPY_NV_SEED)
    intmbedtls_nv_seed_poll(void*data,
    unsignedchar*output,size_tlen,size_t*olen);
    #endif

    #ifdef__cplusplus
    }
    #endif

    #endif/*entropy_poll.h*/