Documentation

Documentation

Includes

config.h

#include "config.h"
#include "config.h"

MBEDTLS_CONFIG_FILE

#include MBEDTLS_CONFIG_FILE
#include MBEDTLS_CONFIG_FILE

stddef.h

#include <stddef.h>
#include 

Macros

Marco MBEDTLS_HAVEGE_H

#define MBEDTLS_HAVEGE_H


      

Marco MBEDTLS_HAVEGE_COLLECT_SIZE

#define MBEDTLS_HAVEGE_COLLECT_SIZE 1024

      

Functions

Func mbedtls_havege_init

void mbedtls_havege_init( mbedtls_havege_state *hs );
/**
 * \brief          HAVEGE initialization
 *
 * \param hs       HAVEGE state to be initialized
 */

Func mbedtls_havege_free

void mbedtls_havege_free( mbedtls_havege_state *hs );
/**
 * \brief          Clear HAVEGE state
 *
 * \param hs       HAVEGE state to be cleared
 */

Func mbedtls_havege_random

int mbedtls_havege_random( void *p_rng, unsigned char *output, size_t len );
/**
 * \brief          HAVEGE rand function
 *
 * \param p_rng    A HAVEGE state
 * \param output   Buffer to fill
 * \param len      Length of buffer
 *
 * \return         0
 */

Vars

Consts

Types

Typedefs

Typedef mbedtls_havege_state;

typedef struct mbedtls_havege_state
{
   int PT1, PT2, offset[2];
   int pool[MBEDTLS_HAVEGE_COLLECT_SIZE];
   int WALK[8192];
}
mbedtls_havege_state;
/**
 * \brief          HAVEGE state structure
 */