Go to the documentation of this file.
27 #ifndef POLARSSL_ENTROPY_H
28 #define POLARSSL_ENTROPY_H
35 #if defined(POLARSSL_HAVEGE_C)
39 #define POLARSSL_ERR_ENTROPY_SOURCE_FAILED -0x003C
40 #define POLARSSL_ERR_ENTROPY_MAX_SOURCES -0x003E
41 #define POLARSSL_ERR_ENTROPY_NO_SOURCES_DEFINED -0x0040
43 #define ENTROPY_MAX_SOURCES 20
44 #define ENTROPY_MAX_GATHER 128
45 #define ENTROPY_BLOCK_SIZE 64
47 #define ENTROPY_SOURCE_MANUAL ENTROPY_MAX_SOURCES
64 typedef int (*
f_source_ptr)(
void *,
unsigned char *, size_t,
size_t *);
86 #if defined(POLARSSL_HAVEGE_C)
132 int entropy_func(
void *data,
unsigned char *output,
size_t len );
144 const unsigned char *data,
size_t len );