Lines Matching refs:memory_blocks
177 uint32_t memory_blocks; member
489 input_block.v[3] = ctx->memory_blocks; in fill_segment()
732 if (ctx->memory_blocks * sizeof(BLOCK) / sizeof(BLOCK) != ctx->memory_blocks) in initialize()
736 ctx->memory = OPENSSL_secure_zalloc(ctx->memory_blocks * in initialize()
739 ctx->memory = OPENSSL_zalloc(ctx->memory_blocks * in initialize()
784 ctx->memory_blocks * sizeof(BLOCK)); in finalize()
787 ctx->memory_blocks * sizeof(BLOCK)); in finalize()
1018 uint32_t memory_blocks, segment_length; in kdf_argon2_derive() local
1093 memory_blocks = ctx->m_cost; 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()
1102 ctx->memory_blocks = memory_blocks; in kdf_argon2_derive()