Searched refs:pool_idx (Results 1 – 2 of 2) sorted by relevance
146 prng->fortuna.pool_idx = prng->fortuna.pool0_len = prng->fortuna.wd = 0; in fortuna_start()190 if ((err = sha256_process(&prng->fortuna.pool[prng->fortuna.pool_idx], tmp, 2)) != CRYPT_OK) { in fortuna_add_entropy()194 if ((err = sha256_process(&prng->fortuna.pool[prng->fortuna.pool_idx], in, inlen)) != CRYPT_OK) { in fortuna_add_entropy()198 if (prng->fortuna.pool_idx == 0) { in fortuna_add_entropy()201 if (++(prng->fortuna.pool_idx) == FORTUNA_POOLS) { in fortuna_add_entropy()202 prng->fortuna.pool_idx = 0; in fortuna_add_entropy()
27 unsigned long pool_idx, /* current pool we will add to */ member