mbed TLS v1.3.14
havege.h
Go to the documentation of this file.
1 
24 #ifndef POLARSSL_HAVEGE_H
25 #define POLARSSL_HAVEGE_H
26 
27 #include <stddef.h>
28 
29 #define COLLECT_SIZE 1024
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
38 typedef struct
39 {
40  int PT1, PT2, offset[2];
41  int pool[COLLECT_SIZE];
42  int WALK[8192];
43 }
45 
51 void havege_init( havege_state *hs );
52 
58 void havege_free( havege_state *hs );
59 
69 int havege_random( void *p_rng, unsigned char *output, size_t len );
70 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif /* havege.h */
#define COLLECT_SIZE
Definition: havege.h:29
void havege_free(havege_state *hs)
Clear HAVEGE state.
int PT2
Definition: havege.h:40
HAVEGE state structure.
Definition: havege.h:38
int havege_random(void *p_rng, unsigned char *output, size_t len)
HAVEGE rand function.
void havege_init(havege_state *hs)
HAVEGE initialization.