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