PolarSSL v1.2.11
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
37
typedef
struct
38
{
39
int
PT1,
PT2
, offset[2];
40
int
pool[
COLLECT_SIZE
];
41
int
WALK[8192];
42
}
43
havege_state
;
44
45
#ifdef __cplusplus
46
extern
"C"
{
47
#endif
48
54
void
havege_init
(
havege_state
*hs );
55
65
int
havege_random
(
void
*p_rng,
unsigned
char
*output,
size_t
len );
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* havege.h */
COLLECT_SIZE
#define COLLECT_SIZE
Definition:
havege.h:32
havege_state::PT2
int PT2
Definition:
havege.h:39
havege_state
HAVEGE state structure.
Definition:
havege.h:37
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 Mon Jul 14 2014 04:01:53 for PolarSSL v1.2.11 by
1.8.6