PolarSSL v1.3.9
Main Page
Modules
Data Structures
Files
File List
Globals
include
polarssl
havege.h
Go to the documentation of this file.
1
27
#ifndef POLARSSL_HAVEGE_H
28
#define POLARSSL_HAVEGE_H
29
30
#include <string.h>
31
32
#define COLLECT_SIZE 1024
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
41
typedef
struct
42
{
43
int
PT1,
PT2
, offset[2];
44
int
pool[
COLLECT_SIZE
];
45
int
WALK[8192];
46
}
47
havege_state
;
48
54
void
havege_init
(
havege_state
*hs );
55
61
void
havege_free
(
havege_state
*hs );
62
72
int
havege_random
(
void
*p_rng,
unsigned
char
*output,
size_t
len );
73
74
#ifdef __cplusplus
75
}
76
#endif
77
78
#endif
/* havege.h */
COLLECT_SIZE
#define COLLECT_SIZE
Definition:
havege.h:32
havege_free
void havege_free(havege_state *hs)
Clear HAVEGE state.
havege_state::PT2
int PT2
Definition:
havege.h:43
havege_state
HAVEGE state structure.
Definition:
havege.h:41
havege_random
int havege_random(void *p_rng, unsigned char *output, size_t len)
HAVEGE rand function.
havege_init
void havege_init(havege_state *hs)
HAVEGE initialization.
Generated on Tue Jan 20 2015 14:20:58 for PolarSSL v1.3.9 by
1.8.8