/*Insert a message digest in entropy pool.*/
randpool_push(pool, md2_end(&context), MD2_DIGEST_LEN);
- pool->counter = pool->counter + 1;
+ pool->counter = pool->counter + 1;
}
/**
* Randpool function initialization.
- * The entropy pool can be initialize also with
- * a previous entropy pool.
+ * The entropy pool can be initialize also with
+ * a previous entropy pool.
*/
void randpool_init(EntropyPool *pool, void *_data, size_t len)
{
if(data)
{
/*
- * Initialize a entropy pool with a
+ * Initialize a entropy pool with a
* previous pool, and assume all pool as
* entropy.
*/
data = (uint8_t *)_data;
/* Test if i + CONFIG_MD2_BLOCK_LEN is inside of entropy pool.*/
- ASSERT((MD2_DIGEST_LEN + i) < CONFIG_SIZE_ENTROPY_POOL);
+ ASSERT((MD2_DIGEST_LEN + i) <= CONFIG_SIZE_ENTROPY_POOL);
md2_init(&context);