mbed TLS v2.2.0
Main Page
Modules
Files
Documentation Home
silabs.com
File List
util
third_party
mbedtls
include
mbedtls
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];
40
int
pool[
MBEDTLS_HAVEGE_COLLECT_SIZE
];
41
int
WALK[8192];
42
}
43
mbedtls_havege_state
;
44
50
void
mbedtls_havege_init
(
mbedtls_havege_state
*hs );
51
57
void
mbedtls_havege_free
(
mbedtls_havege_state
*hs );
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 */
mbedtls_havege_state
HAVEGE state structure.
Definition:
havege.h:37
mbedtls_havege_state::PT2
int PT2
Definition:
havege.h:39
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:28
Generated on Thu Mar 9 2017 20:48:04 for mbed TLS v2.2.0 by
1.8.10