mbed TLS v2.6.0
havege.h
Go to the documentation of this file.
1 
25 #ifndef MBEDTLS_HAVEGE_H
26 #define MBEDTLS_HAVEGE_H
27 
28 #include <stddef.h>
29 
30 #define MBEDTLS_HAVEGE_COLLECT_SIZE 1024
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
39 typedef struct
40 {
41  int PT1, PT2, offset[2];
43  int WALK[8192];
44 }
46 
53 
60 
70 int mbedtls_havege_random( void *p_rng, unsigned char *output, size_t len );
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif /* havege.h */
HAVEGE state structure.
Definition: havege.h:39
void mbedtls_havege_init(mbedtls_havege_state *hs)
HAVEGE initialization.
int mbedtls_havege_random(void *p_rng, unsigned char *output, size_t len)
HAVEGE rand function.
void mbedtls_havege_free(mbedtls_havege_state *hs)
Clear HAVEGE state.
#define MBEDTLS_HAVEGE_COLLECT_SIZE
Definition: havege.h:30