Home
last modified time | relevance | path

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

/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/
H A Dargon2.c31 uint32_t memory_blocks, segment_length; in argon2_ctx() local
45 memory_blocks = context->m_cost; in argon2_ctx()
47 if (memory_blocks < 2 * ARGON2_SYNC_POINTS * context->lanes) { in argon2_ctx()
48 memory_blocks = 2 * ARGON2_SYNC_POINTS * context->lanes; in argon2_ctx()
51 segment_length = memory_blocks / (context->lanes * ARGON2_SYNC_POINTS); in argon2_ctx()
53 memory_blocks = segment_length * (context->lanes * ARGON2_SYNC_POINTS); in argon2_ctx()
58 instance.memory_blocks = memory_blocks; in argon2_ctx()
H A Dargon2-core.h100 uint32_t memory_blocks; /* Number of blocks in memory */ member
H A Dargon2-core.c143 sizeof(block) * instance->memory_blocks); in clear_memory()
491 result = allocate_memory(&(instance->region), instance->memory_blocks); in initialize()
H A Dargon2-fill-block-ssse3.c113 input_block.v[3] = instance->memory_blocks; in generate_addresses()
H A Dargon2-fill-block-avx2.c114 input_block.v[3] = instance->memory_blocks; in generate_addresses()
H A Dargon2-fill-block-avx512f.c119 input_block.v[3] = instance->memory_blocks; in generate_addresses()
H A Dargon2-fill-block-ref.c125 input_block.v[3] = instance->memory_blocks; in generate_addresses()