Home
last modified time | relevance | path

Searched refs:m_cost (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/
H A Dargon2.c45 memory_blocks = context->m_cost; in argon2_ctx()
86 argon2_hash(const uint32_t t_cost, const uint32_t m_cost, in argon2_hash() argument
124 context.m_cost = m_cost; in argon2_hash()
159 argon2i_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, in argon2i_hash_encoded() argument
165 return argon2_hash(t_cost, m_cost, parallelism, pwd, pwdlen, salt, saltlen, in argon2i_hash_encoded()
170 argon2i_hash_raw(const uint32_t t_cost, const uint32_t m_cost, in argon2i_hash_raw() argument
175 return argon2_hash(t_cost, m_cost, parallelism, pwd, pwdlen, salt, saltlen, in argon2i_hash_raw()
180 argon2id_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, in argon2id_hash_encoded() argument
186 return argon2_hash(t_cost, m_cost, parallelism, pwd, pwdlen, salt, saltlen, in argon2id_hash_encoded()
191 argon2id_hash_raw(const uint32_t t_cost, const uint32_t m_cost, in argon2id_hash_raw() argument
[all …]
H A Dargon2.h180 uint32_t m_cost; /* amount of memory requested (KB) */ member
212 int argon2i_hash_encoded(const uint32_t t_cost, const uint32_t m_cost,
233 int argon2id_hash_encoded(const uint32_t t_cost, const uint32_t m_cost,
253 int argon2i_hash_raw(const uint32_t t_cost, const uint32_t m_cost,
272 int argon2id_hash_raw(const uint32_t t_cost, const uint32_t m_cost,
278 int argon2_hash(const uint32_t t_cost, const uint32_t m_cost,
H A Dargon2-core.c70 static int allocate_memory(block_region **region, uint32_t m_cost);
73 allocate_memory(block_region **region, uint32_t m_cost) in allocate_memory() argument
82 memory_size = sizeof(block) * m_cost; in allocate_memory()
83 if (m_cost == 0 || in allocate_memory()
84 memory_size / m_cost != in allocate_memory()
324 if (ARGON2_MIN_MEMORY > context->m_cost) { in validate_inputs()
328 if (ARGON2_MAX_MEMORY < context->m_cost) { in validate_inputs()
332 if (context->m_cost < 8 * context->lanes) { in validate_inputs()
410 STORE32_LE(value, context->m_cost); in initial_hash()
H A Dargon2-encoding.c176 DECIMAL_U32(ctx->m_cost); in decode_string()
177 if (ctx->m_cost > UINT32_MAX) { in decode_string()
289 SX(ctx->m_cost); in encode_string()
H A Dpwhash_argon2i.c268 ctx.m_cost != (uint32_t) memlimit) { in _needs_rehash()