/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/ |
H A D | pwhash_argon2i.c | 143 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_argon2i() argument 155 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i() 161 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i() 168 if (argon2i_hash_raw((uint32_t) opslimit, (uint32_t) (memlimit / 1024U), in crypto_pwhash_argon2i() 185 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_argon2i_str() argument 191 opslimit > crypto_pwhash_argon2i_OPSLIMIT_MAX || in crypto_pwhash_argon2i_str() 197 opslimit < crypto_pwhash_argon2i_OPSLIMIT_MIN || in crypto_pwhash_argon2i_str() 203 if (argon2i_hash_encoded((uint32_t) opslimit, (uint32_t) (memlimit / 1024U), in crypto_pwhash_argon2i_str() 241 _needs_rehash(const char *str, unsigned long long opslimit, size_t memlimit, in _needs_rehash() argument 251 if (opslimit > UINT32_MAX || memlimit > UINT32_MAX || in _needs_rehash() [all …]
|
H A D | pwhash_argon2id.c | 139 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_argon2id() argument 151 opslimit > crypto_pwhash_argon2id_OPSLIMIT_MAX || in crypto_pwhash_argon2id() 157 opslimit < crypto_pwhash_argon2id_OPSLIMIT_MIN || in crypto_pwhash_argon2id() 164 if (argon2id_hash_raw((uint32_t) opslimit, (uint32_t) (memlimit / 1024U), in crypto_pwhash_argon2id() 181 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_argon2id_str() argument 187 opslimit > crypto_pwhash_argon2id_OPSLIMIT_MAX || in crypto_pwhash_argon2id_str() 193 opslimit < crypto_pwhash_argon2id_OPSLIMIT_MIN || in crypto_pwhash_argon2id_str() 199 if (argon2id_hash_encoded((uint32_t) opslimit, (uint32_t) (memlimit / 1024U), in crypto_pwhash_argon2id_str()
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/ |
H A D | crypto_pwhash.c | 132 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash() argument 137 opslimit, memlimit, alg); in crypto_pwhash() 140 opslimit, memlimit, alg); in crypto_pwhash() 150 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str() argument 153 opslimit, memlimit); in crypto_pwhash_str() 159 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_str_alg() argument 164 opslimit, memlimit); in crypto_pwhash_str_alg() 167 opslimit, memlimit); in crypto_pwhash_str_alg() 193 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_str_needs_rehash() argument 197 return crypto_pwhash_argon2id_str_needs_rehash(str, opslimit, memlimit); in crypto_pwhash_str_needs_rehash() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/ |
H A D | pwhash_scryptsalsa208sha256.c | 19 pickparams(unsigned long long opslimit, const size_t memlimit, in pickparams() argument 25 if (opslimit < 32768) { in pickparams() 26 opslimit = 32768; in pickparams() 29 if (opslimit < memlimit / 32) { in pickparams() 31 maxN = opslimit / (*r * 4); in pickparams() 44 maxrp = (opslimit / 4) / ((uint64_t)(1) << *N_log2); in pickparams() 162 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256() argument 175 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 189 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str() argument 204 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/include/sodium/ |
H A D | crypto_pwhash.h | 107 unsigned long long opslimit, size_t memlimit, int alg) 118 unsigned long long opslimit, size_t memlimit) 124 unsigned long long opslimit, size_t memlimit, int alg) 135 unsigned long long opslimit, size_t memlimit)
|
H A D | crypto_pwhash_argon2i.h | 96 unsigned long long opslimit, size_t memlimit, 104 unsigned long long opslimit, size_t memlimit) 115 unsigned long long opslimit, size_t memlimit)
|
H A D | crypto_pwhash_argon2id.h | 96 unsigned long long opslimit, size_t memlimit, 104 unsigned long long opslimit, size_t memlimit) 115 unsigned long long opslimit, size_t memlimit)
|
H A D | crypto_pwhash_scryptsalsa208sha256.h | 85 unsigned long long opslimit, 93 unsigned long long opslimit, 112 unsigned long long opslimit,
|
/freebsd/sys/contrib/libsodium/test/default/ |
H A D | pwhash_scrypt.c | 17 unsigned long long opslimit; in tv() member 108 tests[i].opslimit, tests[i].memlimit) != 0) { in tv() 124 unsigned long long opslimit; in tv2() member 157 tests[i].opslimit, tests[i].memlimit) != 0) { in tv2()
|
H A D | pwhash_argon2i.c | 17 unsigned long long opslimit; in tv() member 95 tests[i].opslimit, tests[i].memlimit, in tv() 114 unsigned long long opslimit; in tv2() member 147 tests[i].opslimit, tests[i].memlimit, in tv2()
|
H A D | pwhash_argon2id.c | 17 unsigned long long opslimit; in tv() member 95 tests[i].opslimit, tests[i].memlimit, in tv() 114 unsigned long long opslimit; in tv2() member 147 tests[i].opslimit, tests[i].memlimit, in tv2()
|