mbed TLS v2.0.0
havege.h
Go to the documentation of this file.
1 
24 #ifndef MBEDTLS_HAVEGE_H
25 #define MBEDTLS_HAVEGE_H
26 
27 #include <stddef.h>
28 
29 #define MBEDTLS_HAVEGE_COLLECT_SIZE 1024
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
38 typedef struct
39 {
40  int PT1, PT2, offset[2];
42  int WALK[8192];
43 }
45 
52 
59 
69 int mbedtls_havege_random( void *p_rng, unsigned char *output, size_t len );
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* havege.h */
HAVEGE state structure.
Definition: havege.h:38
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:29