From 77b88716dcd82d0910512567d4849befdbe34405 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 8 Feb 2007 11:13:41 +0000 Subject: [PATCH] Add function prototypes. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@765 38d2e660-2303-0410-9eaa-f027e97ec537 --- algos/randpool.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ algos/randpool.h | 38 ++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100755 algos/randpool.c create mode 100755 algos/randpool.h diff --git a/algos/randpool.c b/algos/randpool.c new file mode 100755 index 00000000..81aa0eab --- /dev/null +++ b/algos/randpool.c @@ -0,0 +1,50 @@ +/** + * \file + * + * + * \brief API function for to manage entropy pool. + * + * \version $Id$ + * \author Daniele Basile + */ + +/*#* + *#* $Log$ + *#* Revision 1.1 2007/02/08 11:13:40 asterix + *#* Add function prototypes. + *#* + *#*/ + +#include "randpool.h" + +#include +#include //ASSERT() + + +void add_entropy(void *data, size_t n_bit) +{ +} + +size_t pool_size(void) +{ +} + +void get_bit(void *data, size_t n_bit) +{ +} + +void get_bit_n(void *data, size_t n_bit) +{ +} + +bool save_pool(void) +{ +} + +uint8_t load_pool(void) +{ +} + diff --git a/algos/randpool.h b/algos/randpool.h new file mode 100755 index 00000000..817cf39c --- /dev/null +++ b/algos/randpool.h @@ -0,0 +1,38 @@ +/** + * \file + * + * + * \brief API function for to manage entropy pool. + * + * + * \version $Id$ + * \author Daniele Basile + */ + +/*#* + *#* $Log$ + *#* Revision 1.1 2007/02/08 11:13:41 asterix + *#* Add function prototypes. + *#* + *#*/ + +#ifndef RANDPOOL_H +#define RANDPOOL_H + +#include +#include + + +/** + */ +void add_entropy(void *data, size_t n_bit); +size_t pool_size(void); +void get_bit(void *data, size_t n_bit); +void get_bit_n(void *data, size_t n_bit); +bool save_pool(void); +uint8_t load_pool(void); + +#endif /* RANDPOOL_H */ -- 2.25.1