From: asterix Date: Thu, 8 Feb 2007 11:13:41 +0000 (+0000) Subject: Add function prototypes. X-Git-Tag: 1.0.0~476 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=77b88716dcd82d0910512567d4849befdbe34405;p=bertos.git Add function prototypes. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@765 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 */