16#ifndef ES_ENTROPY_POOL_H
17#define ES_ENTROPY_POOL_H
19#include "hitls_build.h"
20#if defined(HITLS_CRYPTO_ENTROPY) && defined(HITLS_CRYPTO_ENTROPY_SYS)
35ES_EntropyPool *ES_EntropyPoolInit(uint32_t size);
38void ES_EntropyPoolDeInit(ES_EntropyPool *pool);
41int32_t ES_EntropyPoolGetMaxSize(ES_EntropyPool *pool);
44uint32_t ES_EntropyPoolGetCurSize(ES_EntropyPool *pool);
47int32_t ES_EntropyPoolPushBytes(ES_EntropyPool *pool, uint8_t *buf, uint32_t bufLen);
50uint32_t ES_EntropyPoolPopBytes(ES_EntropyPool *pool, uint8_t *data, uint32_t size);