Home
last modified time | relevance | path

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

12

/src/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()
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 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()
/src/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 …]
/src/contrib/xz/src/liblzma/common/
H A Dauto_decoder.c23 uint64_t memlimit; member
60 coder->memlimit, coder->flags)); in auto_decode()
65 coder->memlimit, coder->flags)); in auto_decode()
69 allocator, coder->memlimit, true)); in auto_decode()
145 assert(*old_memlimit == coder->memlimit); in auto_decoder_memconfig()
150 *old_memlimit = coder->memlimit; in auto_decoder_memconfig()
158 coder->memlimit = new_memlimit; in auto_decoder_memconfig()
166 uint64_t memlimit, uint32_t flags) in auto_decoder_init() argument
187 coder->memlimit = my_max(1, memlimit); in auto_decoder_init()
196 lzma_auto_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_auto_decoder() argument
[all …]
H A Dindex_decoder.c29 uint64_t memlimit; member
99 if (lzma_index_memusage(1, coder->count) > coder->memlimit) { in index_decode()
234 *old_memlimit = coder->memlimit; in index_decoder_memconfig()
240 coder->memlimit = new_memlimit; in index_decoder_memconfig()
249 lzma_index **i, uint64_t memlimit) in index_decoder_reset() argument
265 coder->memlimit = my_max(1, memlimit); in index_decoder_reset()
276 lzma_index **i, uint64_t memlimit) in lzma_index_decoder_init() argument
298 return index_decoder_reset(coder, allocator, i, memlimit); in lzma_index_decoder_init()
303 lzma_index_decoder(lzma_stream *strm, lzma_index **i, uint64_t memlimit) in lzma_index_decoder() argument
311 lzma_next_strm_init(lzma_index_decoder_init, strm, i, memlimit); in lzma_index_decoder()
[all …]
H A Dalone_decoder.c40 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.c52 uint64_t memlimit; member
227 if (coder->memusage > coder->memlimit) in lzip_decode()
354 *old_memlimit = coder->memlimit; in lzip_decoder_memconfig()
360 coder->memlimit = new_memlimit; in lzip_decoder_memconfig()
370 uint64_t memlimit, uint32_t flags) in lzma_lzip_decoder_init() argument
393 coder->memlimit = my_max(1, memlimit); in lzma_lzip_decoder_init()
406 lzma_lzip_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_lzip_decoder() argument
408 lzma_next_strm_init(lzma_lzip_decoder_init, strm, memlimit, flags); in lzma_lzip_decoder()
H A Dstream_decoder.c43 uint64_t memlimit; member
230 if (memusage > coder->memlimit) { in stream_decode()
407 *old_memlimit = coder->memlimit; in stream_decoder_memconfig()
413 coder->memlimit = new_memlimit; in stream_decoder_memconfig()
423 uint64_t memlimit, uint32_t flags) in lzma_stream_decoder_init() argument
446 coder->memlimit = my_max(1, memlimit); in lzma_stream_decoder_init()
461 lzma_stream_decoder(lzma_stream *strm, uint64_t memlimit, uint32_t flags) in lzma_stream_decoder() argument
463 lzma_next_strm_init(lzma_stream_decoder_init, strm, memlimit, flags); in lzma_stream_decoder()
H A Dfile_info.c67 uint64_t memlimit; member
432 assert(memused <= coder->memlimit); in file_info_decode()
433 if (memused > coder->memlimit) // Extra sanity check in file_info_decode()
441 coder->memlimit - memused)); in file_info_decode()
729 *old_memlimit = coder->memlimit; in file_info_decoder_memconfig()
758 coder->memlimit = new_memlimit; in file_info_decoder_memconfig()
783 uint64_t memlimit, uint64_t file_size) in lzma_file_info_decoder_init() argument
824 coder->memlimit = my_max(1, memlimit); in lzma_file_info_decoder_init()
836 uint64_t memlimit, uint64_t file_size) in lzma_file_info_decoder() argument
839 dest_index, memlimit, file_size); in lzma_file_info_decoder()
H A Dstream_buffer_decoder.c16 lzma_stream_buffer_decode(uint64_t *memlimit, uint32_t flags, in lzma_stream_buffer_decode() argument
37 &stream_decoder, allocator, *memlimit, flags); in lzma_stream_buffer_decode()
79 memlimit, &memusage, 0); in lzma_stream_buffer_decode()
H A Dalone_decoder.h20 uint64_t memlimit, bool picky);
H A Dlzip_decoder.h19 uint64_t memlimit, uint32_t flags);
/src/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()
/src/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_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_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_scryptsalsa208sha256.h86 size_t memlimit)
94 size_t memlimit)
113 size_t memlimit)
/src/contrib/xz/src/liblzma/api/lzma/
H A Dcontainer.h743 lzma_stream *strm, uint64_t memlimit, uint32_t flags)
814 lzma_stream *strm, uint64_t memlimit, uint32_t flags)
839 lzma_stream *strm, uint64_t memlimit)
897 lzma_stream *strm, uint64_t memlimit, uint32_t flags)
942 uint64_t *memlimit, uint32_t flags,
H A Dindex.h754 lzma_stream *strm, lzma_index **i, uint64_t memlimit)
813 uint64_t *memlimit, const lzma_allocator *allocator,
881 uint64_t memlimit, uint64_t file_size)
/src/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(),
/src/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()
/src/contrib/xz/src/xz/
H A Dhardware.c187 const uint64_t memlimit = mode == MODE_COMPRESS in hardware_memlimit_get() local
189 return memlimit != 0 ? memlimit : UINT64_MAX; in hardware_memlimit_get()
H A Dmessage.c855 uint64_t memlimit = hardware_memlimit_get(opt_mode); in message_mem_needed() local
859 if (memlimit == UINT64_MAX) { in message_mem_needed()
874 if (memlimit < (UINT32_C(1) << 20)) { in message_mem_needed()
876 uint64_to_str(memlimit, 1)); in message_mem_needed()
885 uint64_to_str(round_up_to_mib(memlimit), 1)); in message_mem_needed()

12