mbed TLS v2.6.0
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
include
mbedtls
havege.h
Go to the documentation of this file.
1
25
#ifndef MBEDTLS_HAVEGE_H
26
#define MBEDTLS_HAVEGE_H
27
28
#include <stddef.h>
29
30
#define MBEDTLS_HAVEGE_COLLECT_SIZE 1024
31
32
#ifdef __cplusplus
33
extern
"C"
{
34
#endif
35
39
typedef
struct
40
{
41
int
PT1,
PT2
, offset[2];
42
int
pool[
MBEDTLS_HAVEGE_COLLECT_SIZE
];
43
int
WALK[8192];
44
}
45
mbedtls_havege_state
;
46
52
void
mbedtls_havege_init
(
mbedtls_havege_state
*hs );
53
59
void
mbedtls_havege_free
(
mbedtls_havege_state
*hs );
60
70
int
mbedtls_havege_random
(
void
*p_rng,
unsigned
char
*output,
size_t
len );
71
72
#ifdef __cplusplus
73
}
74
#endif
75
76
#endif
/* havege.h */
mbedtls_havege_state
HAVEGE state structure.
Definition:
havege.h:39
mbedtls_havege_state::PT2
int PT2
Definition:
havege.h:41
mbedtls_havege_init
void mbedtls_havege_init(mbedtls_havege_state *hs)
HAVEGE initialization.
mbedtls_havege_random
int mbedtls_havege_random(void *p_rng, unsigned char *output, size_t len)
HAVEGE rand function.
mbedtls_havege_free
void mbedtls_havege_free(mbedtls_havege_state *hs)
Clear HAVEGE state.
MBEDTLS_HAVEGE_COLLECT_SIZE
#define MBEDTLS_HAVEGE_COLLECT_SIZE
Definition:
havege.h:30
Generated on Sat Nov 25 2017 12:48:09 for mbed TLS v2.6.0 by
1.8.8