mbed TLS  Version 2.17.0
SSL/TLS Library for the Embedded Space
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
havege.h File Reference

Data Structures

struct  mbedtls_havege_state
 HAVEGE state structure. More...
 

Macros

#define MBEDTLS_HAVEGE_COLLECT_SIZE   1024
 

Functions

void mbedtls_havege_init (mbedtls_havege_state *hs)
 HAVEGE initialization. More...
 
void mbedtls_havege_free (mbedtls_havege_state *hs)
 Clear HAVEGE state. More...
 
int mbedtls_havege_random (void *p_rng, unsigned char *output, size_t len)
 HAVEGE rand function. More...
 

Description

HAVEGE: HArdware Volatile Entropy Gathering and Expansion.


Data Structure Documentation

struct mbedtls_havege_state

HAVEGE state structure.

Data Fields
int offset[2]
int pool[MBEDTLS_HAVEGE_COLLECT_SIZE]
int PT1
int PT2
int WALK[8192]

Function Documentation

void mbedtls_havege_free ( mbedtls_havege_state hs)

Clear HAVEGE state.

Parameters
hsHAVEGE state to be cleared
void mbedtls_havege_init ( mbedtls_havege_state hs)

HAVEGE initialization.

Parameters
hsHAVEGE state to be initialized
int mbedtls_havege_random ( void *  p_rng,
unsigned char *  output,
size_t  len 
)

HAVEGE rand function.

Parameters
p_rngA HAVEGE state
outputBuffer to fill
lenLength of buffer
Returns
0