| /f-stack/freebsd/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 156 memlimit > crypto_pwhash_argon2i_MEMLIMIT_MAX) { in crypto_pwhash_argon2i() 162 memlimit < crypto_pwhash_argon2i_MEMLIMIT_MIN) { in crypto_pwhash_argon2i() 185 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_argon2i_str() argument 192 memlimit > crypto_pwhash_argon2i_MEMLIMIT_MAX) { in crypto_pwhash_argon2i_str() 198 memlimit < crypto_pwhash_argon2i_MEMLIMIT_MIN) { in crypto_pwhash_argon2i_str() 250 memlimit /= 1024U; in _needs_rehash() 251 if (opslimit > UINT32_MAX || memlimit > UINT32_MAX || in _needs_rehash() 268 ctx.m_cost != (uint32_t) memlimit) { in _needs_rehash() 282 return _needs_rehash(str, opslimit, memlimit, Argon2_i); in crypto_pwhash_argon2i_str_needs_rehash() [all …]
|
| H A D | pwhash_argon2id.c | 139 unsigned long long opslimit, size_t memlimit, int alg) in crypto_pwhash_argon2id() argument 152 memlimit > crypto_pwhash_argon2id_MEMLIMIT_MAX) { in crypto_pwhash_argon2id() 158 memlimit < crypto_pwhash_argon2id_MEMLIMIT_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 188 memlimit > crypto_pwhash_argon2id_MEMLIMIT_MAX) { in crypto_pwhash_argon2id_str() 194 memlimit < crypto_pwhash_argon2id_MEMLIMIT_MIN) { in crypto_pwhash_argon2id_str() 199 if (argon2id_hash_encoded((uint32_t) opslimit, (uint32_t) (memlimit / 1024U), in crypto_pwhash_argon2id_str()
|
| /f-stack/freebsd/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 …]
|
| /f-stack/freebsd/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 29 if (opslimit < memlimit / 32) { in pickparams() 38 maxN = memlimit / ((size_t) *r * 128); 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() 272 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash() argument 278 if (pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash()
|
| /f-stack/freebsd/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 | 86 size_t memlimit) 94 size_t memlimit) 113 size_t memlimit)
|
| /f-stack/freebsd/contrib/libsodium/test/default/ |
| H A D | pwhash_scrypt.c | 18 size_t memlimit; in tv() member 108 tests[i].opslimit, tests[i].memlimit) != 0) { in tv() 125 size_t memlimit; in tv2() member 157 tests[i].opslimit, tests[i].memlimit) != 0) { in tv2()
|
| H A D | pwhash_argon2i.c | 18 size_t memlimit; in tv() member 95 tests[i].opslimit, tests[i].memlimit, in tv() 115 size_t memlimit; in tv2() member 147 tests[i].opslimit, tests[i].memlimit, in tv2()
|
| H A D | pwhash_argon2id.c | 18 size_t memlimit; in tv() member 95 tests[i].opslimit, tests[i].memlimit, in tv() 115 size_t memlimit; in tv2() member 147 tests[i].opslimit, tests[i].memlimit, in tv2()
|
| /f-stack/freebsd/contrib/openzfs/lib/libzfs_core/ |
| H A D | libzfs_core.c | 1249 uint64_t instrlimit, uint64_t memlimit, nvlist_t *argnvl, nvlist_t **outnvl) in lzc_channel_program_impl() argument 1259 fnvlist_add_uint64(args, ZCP_ARG_MEMLIMIT, memlimit); in lzc_channel_program_impl() 1301 uint64_t memlimit, nvlist_t *argnvl, nvlist_t **outnvl) in lzc_channel_program() argument 1304 memlimit, argnvl, outnvl)); in lzc_channel_program() 1389 uint64_t timeout, uint64_t memlimit, nvlist_t *argnvl, nvlist_t **outnvl) in lzc_channel_program_nosync() argument 1392 memlimit, argnvl, outnvl)); in lzc_channel_program_nosync()
|
| H A D | libzfs_core.abi | 993 …<parameter type-id='type-id-6' name='memlimit' filepath='/home/fedora/zfs/lib/libzfs_core/libzfs_c… 1010 …<parameter type-id='type-id-6' name='memlimit' filepath='/home/fedora/zfs/lib/libzfs_core/libzfs_c…
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zcp.c | 1039 uint64_t instrlimit, uint64_t memlimit, nvpair_t *nvarg, nvlist_t *outnvl) in zcp_eval() argument 1047 if (memlimit == 0 || memlimit > zfs_lua_max_memlimit) in zcp_eval() 1052 .aa_alloc_remaining = (int64_t)memlimit, in zcp_eval() 1053 .aa_alloc_limit = (int64_t)memlimit, in zcp_eval()
|
| H A D | zfs_ioctl.c | 3804 uint64_t instrlimit, memlimit; in zfs_ioc_channel_program() local 3815 if (0 != nvlist_lookup_uint64(innvl, ZCP_ARG_MEMLIMIT, &memlimit)) { in zfs_ioc_channel_program() 3816 memlimit = ZCP_DEFAULT_MEMLIMIT; in zfs_ioc_channel_program() 3822 if (memlimit == 0 || memlimit > zfs_lua_max_memlimit) in zfs_ioc_channel_program() 3825 return (zcp_eval(poolname, program, sync_flag, instrlimit, memlimit, in zfs_ioc_channel_program()
|
| /f-stack/freebsd/contrib/openzfs/contrib/pyzfs/libzfs_core/ |
| H A D | _libzfs_core.py | 909 memlimit=ZCP_DEFAULT_MEMLIMIT, params=None argument 940 poolname, program, instrlimit, memlimit, params_nv, outnvl) 948 memlimit=ZCP_DEFAULT_MEMLIMIT, params=None argument 985 poolname, program, instrlimit, memlimit, params_nv, outnvl)
|
| /f-stack/freebsd/contrib/zstd/ |
| H A D | CHANGELOG | 406 New : command -M#, --memory=, --memlimit=, --memlimit-decompress= to limit allowed memory consumpti…
|
| /f-stack/freebsd/contrib/openzfs/cmd/zfs/ |
| H A D | zfs_main.c | 7872 uint64_t memlimit = ZCP_DEFAULT_MEMLIMIT; in zfs_do_channel_program() local 7897 memlimit = arg; in zfs_do_channel_program() 7984 instrlimit, memlimit, argnvl, &outnvl); in zfs_do_channel_program() 7987 instrlimit, memlimit, argnvl, &outnvl); in zfs_do_channel_program()
|
| /f-stack/freebsd/contrib/openzfs/contrib/pyzfs/libzfs_core/test/ |
| H A D | test_libzfs_core.py | 3536 lzc.lzc_channel_program(pool, zcp, memlimit=1) 3546 lzc.lzc_channel_program(pool, zcp, memlimit=0)
|