BeRTOS
|
00001 00038 #ifndef SEC_ENTROPY_YARROW_POOL_H 00039 #define SEC_ENTROPY_YARROW_POOL_H 00040 00041 #include <sec/entropy.h> 00042 #include <sec/hash/sha1.h> 00043 00044 typedef struct 00045 { 00046 EntropyPool e; 00047 00048 struct YarrowPool 00049 { 00050 SHA1_Context hash; 00051 int entropy[CONFIG_ENTROPY_NUM_SOURCES]; 00052 } pools[2]; 00053 00054 struct YarrowSources 00055 { 00056 int curpool; 00057 } sources[CONFIG_ENTROPY_NUM_SOURCES]; 00058 00059 } YarrowPoolContext; 00060 00061 void yarrowpool_init(YarrowPoolContext *ctx); 00062 00063 #endif /* SEC_ENTROPY_YARROW_POOL_H */