| /netbsd-src/sys/external/isc/libsodium/dist/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() 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 192 memlimit > crypto_pwhash_argon2i_MEMLIMIT_MAX) { in crypto_pwhash_argon2i_str() 198 memlimit < crypto_pwhash_argon2i_MEMLIMIT_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 250 memlimit /= 1024U; 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 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()
|
| /netbsd-src/sys/external/isc/libsodium/dist/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 …]
|
| /netbsd-src/external/public-domain/xz/dist/src/liblzma/common/ |
| H A D | index_decoder.c | 30 uint64_t memlimit; member 101 if (lzma_index_memusage(1, coder->count) > coder->memlimit) { in index_decode() 228 *old_memlimit = coder->memlimit; in index_decoder_memconfig() 234 coder->memlimit = new_memlimit; in index_decoder_memconfig() 243 lzma_index **i, uint64_t memlimit) in index_decoder_reset() argument 259 coder->memlimit = my_max(1, memlimit); in index_decoder_reset() 270 lzma_index **i, uint64_t memlimit) in index_decoder_init() argument 292 return index_decoder_reset(coder, allocator, i, memlimit); in index_decoder_init() 297 lzma_index_decoder(lzma_stream *strm, lzma_index **i, uint64_t memlimit) in lzma_index_decoder() argument 299 lzma_next_strm_init(index_decoder_init, strm, i, memlimit); in lzma_index_decoder() [all …]
|
| H A D | auto_decoder.c | 21 uint64_t memlimit; member 56 coder->memlimit, coder->flags)); in auto_decode() 59 allocator, coder->memlimit, true)); in auto_decode() 136 assert(*old_memlimit == coder->memlimit); in auto_decoder_memconfig() 141 *old_memlimit = coder->memlimit; in auto_decoder_memconfig() 149 coder->memlimit = new_memlimit; in auto_decoder_memconfig() 157 uint64_t memlimit, uint32_t flags) in auto_decoder_init() argument 178 coder->memlimit = my_max(1, memlimit); in auto_decoder_init() 187 lzma_auto_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_auto_decoder() argument 189 lzma_next_strm_init(auto_decoder_init, strm, memlimit, flags); in lzma_auto_decoder()
|
| H A D | alone_decoder.c | 41 uint64_t memlimit; member 131 if (coder->memusage > coder->memlimit) in alone_decode() 187 *old_memlimit = coder->memlimit; in alone_decoder_memconfig() 193 coder->memlimit = new_memlimit; in alone_decoder_memconfig() 202 uint64_t memlimit, bool picky) in lzma_alone_decoder_init() argument 227 coder->memlimit = my_max(1, memlimit); in lzma_alone_decoder_init() 235 lzma_alone_decoder(lzma_stream *strm, uint64_t memlimit) in lzma_alone_decoder() argument 237 lzma_next_strm_init(lzma_alone_decoder_init, strm, memlimit, false); in lzma_alone_decoder()
|
| H A D | stream_decoder.c | 44 uint64_t memlimit; member 223 if (memusage > coder->memlimit) { in stream_decode() 405 *old_memlimit = coder->memlimit; in stream_decoder_memconfig() 411 coder->memlimit = new_memlimit; in stream_decoder_memconfig() 421 uint64_t memlimit, uint32_t flags) in lzma_stream_decoder_init() argument 444 coder->memlimit = my_max(1, memlimit); in lzma_stream_decoder_init() 459 lzma_stream_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_stream_decoder() argument 461 lzma_next_strm_init(lzma_stream_decoder_init, strm, memlimit, flags); in lzma_stream_decoder()
|
| H A D | stream_buffer_decoder.c | 17 lzma_stream_buffer_decode(uint64_t *memlimit, uint32_t flags, in lzma_stream_buffer_decode() argument 38 &stream_decoder, allocator, *memlimit, flags); in lzma_stream_buffer_decode() 80 memlimit, &memusage, 0); in lzma_stream_buffer_decode()
|
| H A D | alone_decoder.h | 21 uint64_t memlimit, bool picky);
|
| /netbsd-src/sys/external/isc/libsodium/dist/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() 151 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256() argument 164 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256() 178 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str() argument 193 pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str() 261 unsigned long long opslimit, size_t memlimit) in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash() argument 267 if (pickparams(opslimit, memlimit, &N_log2, &p, &r) != 0) { in crypto_pwhash_scryptsalsa208sha256_str_needs_rehash()
|
| /netbsd-src/sys/fs/tmpfs/ |
| H A D | tmpfs_mem.c | 52 tmpfs_mntmem_init(struct tmpfs_mount *mp, uint64_t memlimit) in tmpfs_mntmem_init() argument 56 mp->tm_mem_limit = memlimit; in tmpfs_mntmem_init() 69 tmpfs_mntmem_set(struct tmpfs_mount *mp, uint64_t memlimit) in tmpfs_mntmem_set() argument 74 if (round_page(mp->tm_bytes_used) >= memlimit) in tmpfs_mntmem_set() 78 mp->tm_mem_limit = memlimit; in tmpfs_mntmem_set()
|
| H A D | tmpfs_vfsops.c | 93 uint64_t memlimit; in tmpfs_mount() local 137 memlimit = UINT64_MAX; in tmpfs_mount() 140 memlimit = args->ta_size_max; in tmpfs_mount() 143 KASSERT(memlimit > 0); in tmpfs_mount() 146 nodes = 3 + (memlimit / 1024); in tmpfs_mount() 169 if ((error = tmpfs_mntmem_set(tmp, memlimit)) != 0) in tmpfs_mount() 196 tmpfs_mntmem_init(tmp, memlimit); in tmpfs_mount()
|
| /netbsd-src/sys/external/isc/libsodium/dist/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_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_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_scryptsalsa208sha256.h | 86 size_t memlimit) 94 size_t memlimit) 113 size_t memlimit)
|
| /netbsd-src/external/public-domain/xz/dist/src/liblzma/api/lzma/ |
| H A D | container.h | 537 lzma_stream *strm, uint64_t memlimit, uint32_t flags) 562 lzma_stream *strm, uint64_t memlimit, uint32_t flags) 585 lzma_stream *strm, uint64_t memlimit) 628 uint64_t *memlimit, uint32_t flags,
|
| H A D | index.h | 629 lzma_stream *strm, lzma_index **i, uint64_t memlimit) 684 uint64_t *memlimit, const lzma_allocator *allocator,
|
| /netbsd-src/external/public-domain/xz/dist/src/xz/ |
| H A D | hardware.c | 93 const uint64_t memlimit = mode == MODE_COMPRESS in hardware_memlimit_get() local 95 return memlimit != 0 ? memlimit : UINT64_MAX; in hardware_memlimit_get()
|
| H A D | message.c | 843 uint64_t memlimit = hardware_memlimit_get(opt_mode); in message_mem_needed() local 847 if (memlimit == UINT64_MAX) { in message_mem_needed() 862 if (memlimit < (UINT32_C(1) << 20)) { in message_mem_needed() 864 uint64_to_str(memlimit, 1)); in message_mem_needed() 873 uint64_to_str(round_up_to_mib(memlimit), 1)); in message_mem_needed()
|
| /netbsd-src/sys/external/isc/libsodium/dist/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()
|
| /netbsd-src/sys/arch/sandpoint/stand/altboot/ |
| H A D | pci.c | 53 unsigned memstart, memlimit; variable 62 memlimit = PCI_MEMLIMIT; in pcisetup() 246 val = (memlimit & 0xffff0000) | (val & 0xffff0000) >> 16; in deviceinit() 309 if (mapbase + size > memlimit) in memassign()
|
| /netbsd-src/external/public-domain/xz/dist/tests/ |
| H A D | test_bcj_exact_size.c | 95 uint64_t memlimit = 1 << 20; in decompress_empty() local 98 expect(lzma_stream_buffer_decode(&memlimit, 0, NULL, in decompress_empty()
|