X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=algo%2Frandpool.h;h=fbfdaaa6489e7b987b2266f33d5799470d4a322b;hb=HEAD;hp=317ebe7435dc7d7c4958d84d68b6b52277c9ec44;hpb=6efccabd909ecee0607e10c57bb5e64162a19eb7;p=bertos.git diff --git a/algo/randpool.h b/algo/randpool.h deleted file mode 100644 index 317ebe74..00000000 --- a/algo/randpool.h +++ /dev/null @@ -1,72 +0,0 @@ -/** - * \file - * - * - * \brief API function for to manage entropy pool. - * - * - * \version $Id$ - * \author Daniele Basile - */ - -#ifndef ALGO_RANDPOOL_H -#define ALGO_RANDPOOL_H - -#include -#include - - -/** - * Sturct data of entropy pool. - */ -typedef struct EntropyPool -{ - size_t entropy; ///< Actual value of entropy (byte). - size_t pos_add; ///< Number of byte idd in entropy pool. - size_t pos_get; ///< Number of byte get in entropy pool. - size_t counter; ///< Counter. - -#if CONFIG_RANDPOOL_TIMER - size_t last_counter; ///< Last timer value. -#endif - - uint8_t pool_entropy[CONFIG_SIZE_ENTROPY_POOL]; ///< Entropy pool. - -} EntropyPool; - - -void randpool_add(EntropyPool *pool, void *data, size_t entropy); -void randpool_init(EntropyPool *pool, void *_data, size_t len); -size_t randpool_size(EntropyPool *pool); -void randpool_get(EntropyPool *pool, void *data, size_t n_byte); -uint8_t *randpool_pool(EntropyPool *pool); - -#endif /* ALGO_RANDPOOL_H */