Lines Matching refs:lanes
170 uint32_t lanes; member
209 static int kdf_argon2_ctx_set_lanes(KDF_ARGON2 *ctx, uint32_t lanes);
356 for (l = 0; l < ctx->lanes; ++l) { in fill_first_blocks()
525 ref_lane = ((rnd >> 32)) % ctx->lanes; in fill_segment()
567 t = OPENSSL_zalloc(sizeof(void *)*ctx->lanes); in fill_mem_blocks_mt()
568 t_data = OPENSSL_zalloc(ctx->lanes * sizeof(ARGON2_THREAD_DATA)); in fill_mem_blocks_mt()
575 for (l = 0; l < ctx->lanes; ++l) { in fill_mem_blocks_mt()
605 for (l = ctx->lanes - ctx->threads; l < ctx->lanes; ++l) { in fill_mem_blocks_mt()
636 for (l = 0; l < ctx->lanes; ++l) in fill_mem_blocks_st()
660 args[0] = ctx->lanes; in initial_hash()
770 for (l = 1; l < ctx->lanes; ++l) { in finalize()
922 c->lanes = ARGON2_DEFAULT_LANES; in kdf_argon2_init()
1079 if (ctx->threads > ctx->lanes) { in kdf_argon2_derive()
1082 ctx->threads, ctx->lanes); in kdf_argon2_derive()
1087 if (ctx->m_cost < 8 * ctx->lanes) { in kdf_argon2_derive()
1094 if (memory_blocks < 2 * ARGON2_SYNC_POINTS * ctx->lanes) in kdf_argon2_derive()
1095 memory_blocks = 2 * ARGON2_SYNC_POINTS * ctx->lanes; in kdf_argon2_derive()
1098 segment_length = memory_blocks / (ctx->lanes * ARGON2_SYNC_POINTS); in kdf_argon2_derive()
1099 memory_blocks = segment_length * (ctx->lanes * ARGON2_SYNC_POINTS); in kdf_argon2_derive()
1168 static int kdf_argon2_ctx_set_lanes(KDF_ARGON2 *ctx, uint32_t lanes) in kdf_argon2_ctx_set_lanes() argument
1170 if (lanes > ARGON2_MAX_LANES) { in kdf_argon2_ctx_set_lanes()
1176 if (lanes < ARGON2_MIN_LANES) { in kdf_argon2_ctx_set_lanes()
1182 ctx->lanes = lanes; in kdf_argon2_ctx_set_lanes()