Lines Matching refs:threads
171 uint32_t threads; member
208 static int kdf_argon2_ctx_set_threads(KDF_ARGON2 *ctx, uint32_t threads);
577 if (l >= ctx->threads) { in fill_mem_blocks_mt()
578 if (ossl_crypto_thread_join(t[l - ctx->threads], NULL) == 0) in fill_mem_blocks_mt()
580 if (ossl_crypto_thread_clean(t[l - ctx->threads]) == 0) in fill_mem_blocks_mt()
605 for (l = ctx->lanes - ctx->threads; l < ctx->lanes; ++l) { in fill_mem_blocks_mt()
644 return ctx->threads == 1 ? fill_mem_blocks_st(ctx) : fill_mem_blocks_mt(ctx); in fill_memory_blocks()
646 return ctx->threads == 1 ? fill_mem_blocks_st(ctx) : 0; in fill_memory_blocks()
923 c->threads = ARGON2_DEFAULT_THREADS; in kdf_argon2_init()
1065 if (ctx->threads > 1) { in kdf_argon2_derive()
1069 ctx->threads); in kdf_argon2_derive()
1072 if (ctx->threads > ossl_get_avail_threads(ctx->libctx)) { in kdf_argon2_derive()
1075 ctx->threads, ossl_get_avail_threads(ctx->libctx)); in kdf_argon2_derive()
1079 if (ctx->threads > ctx->lanes) { in kdf_argon2_derive()
1082 ctx->threads, ctx->lanes); in kdf_argon2_derive()
1150 static int kdf_argon2_ctx_set_threads(KDF_ARGON2 *ctx, uint32_t threads) in kdf_argon2_ctx_set_threads() argument
1152 if (threads < ARGON2_MIN_THREADS) { in kdf_argon2_ctx_set_threads()
1158 if (threads > ARGON2_MAX_THREADS) { in kdf_argon2_ctx_set_threads()
1164 ctx->threads = threads; in kdf_argon2_ctx_set_threads()