Home
last modified time | relevance | path

Searched refs:memory_blocks (Results 1 – 8 of 8) 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()
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dargon2.c175 uint32_t memory_blocks; member
484 input_block.v[3] = ctx->memory_blocks; in fill_segment()
727 if (ctx->memory_blocks * sizeof(BLOCK) / sizeof(BLOCK) != ctx->memory_blocks) in initialize()
731 ctx->memory = OPENSSL_secure_zalloc(ctx->memory_blocks * sizeof(BLOCK)); in initialize()
733 ctx->memory = OPENSSL_zalloc(ctx->memory_blocks * sizeof(BLOCK)); in initialize()
777 ctx->memory_blocks * sizeof(BLOCK)); in finalize()
780 ctx->memory_blocks * sizeof(BLOCK)); in finalize()
1014 uint32_t memory_blocks, segment_length; in kdf_argon2_derive() local
1089 memory_blocks = ctx->m_cost; in kdf_argon2_derive()
1090 if (memory_blocks < 2 * ARGON2_SYNC_POINTS * ctx->lanes) in kdf_argon2_derive()
[all …]