1a8e1175bSopenharmony_ci#include "mbedtls/build_info.h" 2a8e1175bSopenharmony_ci 3a8e1175bSopenharmony_ci#if defined(MBEDTLS_HAVE_TIME) 4a8e1175bSopenharmony_ci#include "mbedtls/platform_time.h" 5a8e1175bSopenharmony_ci#endif 6a8e1175bSopenharmony_ci#include <stddef.h> 7a8e1175bSopenharmony_ci#include <stdint.h> 8a8e1175bSopenharmony_ci 9a8e1175bSopenharmony_citypedef struct fuzzBufferOffset { 10a8e1175bSopenharmony_ci const uint8_t *Data; 11a8e1175bSopenharmony_ci size_t Size; 12a8e1175bSopenharmony_ci size_t Offset; 13a8e1175bSopenharmony_ci} fuzzBufferOffset_t; 14a8e1175bSopenharmony_ci 15a8e1175bSopenharmony_ci#if defined(MBEDTLS_HAVE_TIME) 16a8e1175bSopenharmony_cimbedtls_time_t dummy_constant_time(mbedtls_time_t *time); 17a8e1175bSopenharmony_ci#endif 18a8e1175bSopenharmony_civoid dummy_init(void); 19a8e1175bSopenharmony_ci 20a8e1175bSopenharmony_ciint dummy_send(void *ctx, const unsigned char *buf, size_t len); 21a8e1175bSopenharmony_ciint fuzz_recv(void *ctx, unsigned char *buf, size_t len); 22a8e1175bSopenharmony_ciint dummy_random(void *p_rng, unsigned char *output, size_t output_len); 23a8e1175bSopenharmony_ciint dummy_entropy(void *data, unsigned char *output, size_t len); 24a8e1175bSopenharmony_ciint fuzz_recv_timeout(void *ctx, unsigned char *buf, size_t len, 25a8e1175bSopenharmony_ci uint32_t timeout); 26