/netbsd-current/external/apache2/argon2/dist/phc-winner-argon2/src/ |
H A D | argon2.c | 67 instance.passes = context->t_cost; 100 int argon2_hash(const uint32_t t_cost, const uint32_t m_cost, argument 142 context.t_cost = t_cost; 179 int argon2i_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, argument 185 return argon2_hash(t_cost, m_cost, parallelism, pwd, pwdlen, salt, saltlen, 190 int argon2i_hash_raw(const uint32_t t_cost, const uint32_t m_cost, argument 195 return argon2_hash(t_cost, m_cost, parallelism, pwd, pwdlen, salt, saltlen, 199 int argon2d_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, argument 205 return argon2_hash(t_cost, m_cos 210 argon2d_hash_raw(const uint32_t t_cost, const uint32_t m_cost, const uint32_t parallelism, const void *pwd, const size_t pwdlen, const void *salt, const size_t saltlen, void *hash, const size_t hashlen) argument 219 argon2id_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, const uint32_t parallelism, const void *pwd, const size_t pwdlen, const void *salt, const size_t saltlen, const size_t hashlen, char *encoded, const size_t encodedlen) argument 230 argon2id_hash_raw(const uint32_t t_cost, const uint32_t m_cost, const uint32_t parallelism, const void *pwd, const size_t pwdlen, const void *salt, const size_t saltlen, void *hash, const size_t hashlen) argument 447 argon2_encodedlen(uint32_t t_cost, uint32_t m_cost, uint32_t parallelism, uint32_t saltlen, uint32_t hashlen, argon2_type type) argument [all...] |
H A D | bench.c | 48 * Benchmarks Argon2 with salt length 16, password length 16, t_cost 3, 62 uint32_t t_cost = 3; local 87 argon2_hash(t_cost, m_cost, thread_n, pwd_array, inlen, 99 "Mcycles \n", argon2_type2string(type, 1), t_cost,
|
H A D | run.c | 85 @t_cost number of iterations 94 static void run(uint32_t outlen, char *pwd, size_t pwdlen, char *salt, uint32_t t_cost, argument 127 encodedlen = argon2_encodedlen(t_cost, m_cost, lanes, (uint32_t)saltlen, outlen, type); 134 result = argon2_hash(t_cost, m_cost, threads, pwd, pwdlen, salt, saltlen, 173 uint32_t t_cost = T_COST_DEF; local 259 t_cost = input; 327 printf("Iterations:\t%u\n", t_cost); 332 run(outlen, pwd, pwdlen, salt, t_cost, m_cost, lanes, threads, type,
|
H A D | genkat.c | 39 context->m_cost, context->t_cost, context->lanes, 145 unsigned t_cost = 3; local 165 context.t_cost = t_cost;
|
H A D | encoding.c | 336 DECIMAL_U32(ctx->t_cost); 424 SX(ctx->t_cost);
|
H A D | core.c | 482 if (ARGON2_MIN_TIME > context->t_cost) { 486 if (ARGON2_MAX_TIME < context->t_cost) { 562 store32(&value, context->t_cost);
|
/netbsd-current/sys/external/isc/libsodium/dist/src/libsodium/crypto_pwhash/argon2/ |
H A D | argon2.c | 56 instance.passes = context->t_cost; 86 argon2_hash(const uint32_t t_cost, const uint32_t m_cost, argument 123 context.t_cost = t_cost; 159 argon2i_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, argument 165 return argon2_hash(t_cost, m_cost, parallelism, pwd, pwdlen, salt, saltlen, 170 argon2i_hash_raw(const uint32_t t_cost, const uint32_t m_cost, argument 175 return argon2_hash(t_cost, m_cost, parallelism, pwd, pwdlen, salt, saltlen, 180 argon2id_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, argument 186 return argon2_hash(t_cost, m_cos 191 argon2id_hash_raw(const uint32_t t_cost, const uint32_t m_cost, const uint32_t parallelism, const void *pwd, const size_t pwdlen, const void *salt, const size_t saltlen, void *hash, const size_t hashlen) argument [all...] |
H A D | argon2.h | 179 uint32_t t_cost; /* number of passes */ member in struct:Argon2_Context 199 * @param t_cost Number of iterations 212 int argon2i_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, 220 * @param t_cost Number of iterations 233 int argon2id_hash_encoded(const uint32_t t_cost, const uint32_t m_cost, 241 * @param t_cost Number of iterations 253 int argon2i_hash_raw(const uint32_t t_cost, const uint32_t m_cost, 260 * @param t_cost Number of iterations 272 int argon2id_hash_raw(const uint32_t t_cost, const uint32_t m_cost, 278 int argon2_hash(const uint32_t t_cost, cons [all...] |
H A D | argon2-encoding.c | 181 DECIMAL_U32(ctx->t_cost); 182 if (ctx->t_cost > UINT32_MAX) { 291 SX(ctx->t_cost);
|
H A D | argon2-core.c | 337 if (ARGON2_MIN_TIME > context->t_cost) { 341 if (ARGON2_MAX_TIME < context->t_cost) { 413 STORE32_LE(value, context->t_cost);
|
H A D | pwhash_argon2i.c | 267 } else if (ctx.t_cost != (uint32_t) opslimit ||
|
/netbsd-current/external/apache2/argon2/dist/phc-winner-argon2/include/ |
H A D | argon2.h | 207 uint32_t t_cost; /* number of passes */ member in struct:Argon2_Context 251 * @param t_cost Number of iterations 264 ARGON2_PUBLIC int argon2i_hash_encoded(const uint32_t t_cost, 274 * @param t_cost Number of iterations 286 ARGON2_PUBLIC int argon2i_hash_raw(const uint32_t t_cost, const uint32_t m_cost, 292 ARGON2_PUBLIC int argon2d_hash_encoded(const uint32_t t_cost, 300 ARGON2_PUBLIC int argon2d_hash_raw(const uint32_t t_cost, const uint32_t m_cost, 306 ARGON2_PUBLIC int argon2id_hash_encoded(const uint32_t t_cost, 314 ARGON2_PUBLIC int argon2id_hash_raw(const uint32_t t_cost, 322 ARGON2_PUBLIC int argon2_hash(const uint32_t t_cost, cons [all...] |
/netbsd-current/lib/libcrypt/ |
H A D | crypt-argon2.c | 303 * t_cost (t) 321 ctx->t_cost = tmp; 416 rc = argon2_hash(ctx.t_cost, ctx.m_cost,
|