Home
last modified time | relevance | path

Searched refs:memlimit (Results 1 – 25 of 44) sorted by relevance

12

/freebsd-14.2/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2/
H A Dpwhash_argon2i.c143 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 Dpwhash_argon2id.c139 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()
/freebsd-14.2/sys/contrib/libsodium/src/libsodium/crypto_pwhash/
H A Dcrypto_pwhash.c132 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-14.2/contrib/xz/src/liblzma/common/
H A Dauto_decoder.c24 uint64_t memlimit; member
61 coder->memlimit, coder->flags)); in auto_decode()
66 coder->memlimit, coder->flags)); in auto_decode()
70 allocator, coder->memlimit, true)); in auto_decode()
147 assert(*old_memlimit == coder->memlimit); in auto_decoder_memconfig()
152 *old_memlimit = coder->memlimit; in auto_decoder_memconfig()
160 coder->memlimit = new_memlimit; in auto_decoder_memconfig()
168 uint64_t memlimit, uint32_t flags) in auto_decoder_init() argument
189 coder->memlimit = my_max(1, memlimit); in auto_decoder_init()
198 lzma_auto_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_auto_decoder() argument
[all …]
H A Dindex_decoder.c30 uint64_t memlimit; member
101 if (lzma_index_memusage(1, coder->count) > coder->memlimit) { in index_decode()
238 *old_memlimit = coder->memlimit; in index_decoder_memconfig()
244 coder->memlimit = new_memlimit; in index_decoder_memconfig()
253 lzma_index **i, uint64_t memlimit) in index_decoder_reset() argument
269 coder->memlimit = my_max(1, memlimit); in index_decoder_reset()
280 lzma_index **i, uint64_t memlimit) in lzma_index_decoder_init() argument
302 return index_decoder_reset(coder, allocator, i, memlimit); in lzma_index_decoder_init()
319 lzma_index_buffer_decode(lzma_index **i, uint64_t *memlimit, in lzma_index_buffer_decode() argument
324 if (i == NULL || memlimit == NULL in lzma_index_buffer_decode()
[all …]
H A Dalone_decoder.c41 uint64_t memlimit; member
142 if (coder->memusage > coder->memlimit) in alone_decode()
193 *old_memlimit = coder->memlimit; in alone_decoder_memconfig()
199 coder->memlimit = new_memlimit; in alone_decoder_memconfig()
208 uint64_t memlimit, bool picky) in lzma_alone_decoder_init() argument
233 coder->memlimit = my_max(1, memlimit); in lzma_alone_decoder_init()
241 lzma_alone_decoder(lzma_stream *strm, uint64_t memlimit) in lzma_alone_decoder() argument
243 lzma_next_strm_init(lzma_alone_decoder_init, strm, memlimit, false); in lzma_alone_decoder()
H A Dlzip_decoder.c53 uint64_t memlimit; member
229 if (coder->memusage > coder->memlimit) in lzip_decode()
358 *old_memlimit = coder->memlimit; in lzip_decoder_memconfig()
364 coder->memlimit = new_memlimit; in lzip_decoder_memconfig()
374 uint64_t memlimit, uint32_t flags) in lzma_lzip_decoder_init() argument
397 coder->memlimit = my_max(1, memlimit); in lzma_lzip_decoder_init()
410 lzma_lzip_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_lzip_decoder() argument
412 lzma_next_strm_init(lzma_lzip_decoder_init, strm, memlimit, flags); in lzma_lzip_decoder()
H A Dstream_decoder.c44 uint64_t memlimit; member
232 if (memusage > coder->memlimit) { in stream_decode()
412 *old_memlimit = coder->memlimit; in stream_decoder_memconfig()
418 coder->memlimit = new_memlimit; in stream_decoder_memconfig()
428 uint64_t memlimit, uint32_t flags) in lzma_stream_decoder_init() argument
451 coder->memlimit = my_max(1, memlimit); in lzma_stream_decoder_init()
466 lzma_stream_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_stream_decoder() argument
468 lzma_next_strm_init(lzma_stream_decoder_init, strm, memlimit, flags); in lzma_stream_decoder()
H A Dfile_info.c68 uint64_t memlimit; member
435 assert(memused <= coder->memlimit); in file_info_decode()
436 if (memused > coder->memlimit) // Extra sanity check in file_info_decode()
444 coder->memlimit - memused)); in file_info_decode()
734 *old_memlimit = coder->memlimit; in file_info_decoder_memconfig()
763 coder->memlimit = new_memlimit; in file_info_decoder_memconfig()
788 uint64_t memlimit, uint64_t file_size) in lzma_file_info_decoder_init() argument
829 coder->memlimit = my_max(1, memlimit); in lzma_file_info_decoder_init()
841 uint64_t memlimit, uint64_t file_size) in lzma_file_info_decoder() argument
844 dest_index, memlimit, file_size); in lzma_file_info_decoder()
H A Dstream_buffer_decoder.c17 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 Dalone_decoder.h21 uint64_t memlimit, bool picky);
H A Dindex_decoder.h22 lzma_index **i, uint64_t memlimit);
/freebsd-14.2/sys/contrib/libsodium/src/libsodium/crypto_pwhash/scryptsalsa208sha256/
H A Dpwhash_scryptsalsa208sha256.c19 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()
/freebsd-14.2/sys/contrib/libsodium/src/libsodium/include/sodium/
H A Dcrypto_pwhash.h107 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 Dcrypto_pwhash_argon2id.h96 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 Dcrypto_pwhash_argon2i.h96 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 Dcrypto_pwhash_scryptsalsa208sha256.h86 size_t memlimit)
94 size_t memlimit)
113 size_t memlimit)
/freebsd-14.2/contrib/xz/src/liblzma/api/lzma/
H A Dcontainer.h744 lzma_stream *strm, uint64_t memlimit, uint32_t flags)
815 lzma_stream *strm, uint64_t memlimit, uint32_t flags)
840 lzma_stream *strm, uint64_t memlimit)
900 lzma_stream *strm, uint64_t memlimit, uint32_t flags)
945 uint64_t *memlimit, uint32_t flags,
H A Dindex.h732 lzma_stream *strm, lzma_index **i, uint64_t memlimit)
791 uint64_t *memlimit, const lzma_allocator *allocator,
859 uint64_t memlimit, uint64_t file_size)
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/
H A DLZMA.cpp95 uint64_t memlimit(UINT64_MAX);
98 &xzindex, &memlimit, nullptr,
128 uint64_t memlimit = UINT64_MAX;
132 &memlimit, 0, nullptr, InputBuffer.data(), &inpos, InputBuffer.size(),
/freebsd-14.2/sys/contrib/libsodium/test/default/
H A Dpwhash_scrypt.c18 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 Dpwhash_argon2i.c18 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 Dpwhash_argon2id.c18 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()
/freebsd-14.2/contrib/xz/src/xz/
H A Dhardware.c184 const uint64_t memlimit = mode == MODE_COMPRESS in hardware_memlimit_get() local
186 return memlimit != 0 ? memlimit : UINT64_MAX; in hardware_memlimit_get()
H A Dmessage.c872 uint64_t memlimit = hardware_memlimit_get(opt_mode); in message_mem_needed() local
876 if (memlimit == UINT64_MAX) { in message_mem_needed()
891 if (memlimit < (UINT32_C(1) << 20)) { in message_mem_needed()
893 uint64_to_str(memlimit, 1)); in message_mem_needed()
902 uint64_to_str(round_up_to_mib(memlimit), 1)); in message_mem_needed()

12