Home
last modified time | relevance | path

Searched refs:pool_ctx (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/crypto/
H A Drng_fortuna.c51 void *pool_ctx[NUM_POOLS]; member
121 crypto_hash_free_ctx(state.pool_ctx[n]); in fortuna_done()
122 state.pool_ctx[n] = NULL; in fortuna_done()
145 res = crypto_hash_alloc_ctx(&state.pool_ctx[n], HASH_ALGO); in crypto_rng_init()
148 res = crypto_hash_init(state.pool_ctx[n]); in crypto_rng_init()
232 res = hash_update(state.pool_ctx[pnum], v, sizeof(v)); in add_event()
235 res = hash_update(state.pool_ctx[pnum], data, dl); in add_event()
395 static TEE_Result restart_pool(void *pool_ctx, uint8_t pool_digest[KEY_SIZE]) in restart_pool() argument
397 TEE_Result res = hash_final(pool_ctx, pool_digest); in restart_pool()
402 res = hash_init(pool_ctx); in restart_pool()
[all …]