/third_party/openssl/providers/implementations/rands/seeding/ |
D | rand_win.c | 53 size_t bytes_needed; in ossl_pool_acquire_entropy() local 70 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 71 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 74 if (BCryptGenRandom(NULL, buffer, bytes_needed, in ossl_pool_acquire_entropy() 76 bytes = bytes_needed; in ossl_pool_acquire_entropy() 84 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 85 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 91 if (CryptGenRandom(hProvider, bytes_needed, buffer) != 0) in ossl_pool_acquire_entropy() 92 bytes = bytes_needed; in ossl_pool_acquire_entropy() 103 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() [all …]
|
D | rand_unix.c | 145 size_t bytes_needed; in ossl_pool_acquire_entropy() local 156 bytes_needed = ossl_rand_pool_bytes_needed(pool, 4 /*entropy_factor*/); in ossl_pool_acquire_entropy() 158 for (i = 0; i < bytes_needed; i++) { in ossl_pool_acquire_entropy() 637 size_t bytes_needed; in ossl_pool_acquire_entropy() 643 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 644 while (bytes_needed != 0 && attempts-- > 0) { in ossl_pool_acquire_entropy() 645 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 646 bytes = syscall_random(buffer, bytes_needed); in ossl_pool_acquire_entropy() 649 bytes_needed -= bytes; in ossl_pool_acquire_entropy() 669 size_t bytes_needed; in ossl_pool_acquire_entropy() [all …]
|
D | rand_cpu_x86.c | 40 size_t bytes_needed; in ossl_prov_acquire_entropy_from_cpu() local 43 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_prov_acquire_entropy_from_cpu() 44 if (bytes_needed > 0) { in ossl_prov_acquire_entropy_from_cpu() 45 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_prov_acquire_entropy_from_cpu() 48 if (get_hardware_random_value(buffer, bytes_needed) == bytes_needed) { in ossl_prov_acquire_entropy_from_cpu() 49 ossl_rand_pool_add_end(pool, bytes_needed, 8 * bytes_needed); in ossl_prov_acquire_entropy_from_cpu()
|
D | rand_vxworks.c | 125 size_t bytes_needed; in ossl_pool_acquire_entropy() local 127 bytes_needed = ossl_rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in ossl_pool_acquire_entropy() 128 if (bytes_needed > 0) in ossl_pool_acquire_entropy() 134 buffer = ossl_rand_pool_add_begin(pool, bytes_needed); in ossl_pool_acquire_entropy() 140 result = randBytes(buffer, bytes_needed); in ossl_pool_acquire_entropy() 142 ossl_rand_pool_add_end(pool, bytes_needed, 8 * bytes_needed); in ossl_pool_acquire_entropy()
|
D | rand_vms.c | 365 size_t bytes_needed = ossl_rand_pool_bytes_needed(pool, ENTROPY_FACTOR); in data_collect_method() local 458 if (!ossl_assert(total_length >= bytes_needed)) { in data_collect_method() 461 bytes_needed, total_length); in data_collect_method() 507 size_t bytes_needed; in get_entropy_method() local 511 for (bytes_needed = ossl_rand_pool_bytes_needed(pool, 1); in get_entropy_method() 512 bytes_needed > 0; in get_entropy_method() 513 bytes_needed -= bytes_to_get) { in get_entropy_method() 515 bytes_needed > sizeof(buffer) ? sizeof(buffer) : bytes_needed; in get_entropy_method()
|
/third_party/openssl/providers/implementations/rands/ |
D | crngt.c | 111 size_t bytes_needed; in ossl_crngt_get_entropy() local 142 bytes_needed = (entropy + 7) / 8; in ossl_crngt_get_entropy() 143 if (bytes_needed < min_len) in ossl_crngt_get_entropy() 144 bytes_needed = min_len; in ossl_crngt_get_entropy() 145 if (bytes_needed > max_len) in ossl_crngt_get_entropy() 147 entp = ent = OPENSSL_secure_malloc(bytes_needed); in ossl_crngt_get_entropy() 160 for (t = bytes_needed; t > 0;) { in ossl_crngt_get_entropy() 180 r = bytes_needed; in ossl_crngt_get_entropy() 187 OPENSSL_secure_clear_free(ent, bytes_needed); in ossl_crngt_get_entropy()
|
D | seed_src.c | 182 size_t bytes_needed; in seed_get_seed() local 191 bytes_needed = entropy >= 0 ? (entropy + 7) / 8 : 0; in seed_get_seed() 192 if (bytes_needed < min_len) in seed_get_seed() 193 bytes_needed = min_len; in seed_get_seed() 194 if (bytes_needed > max_len) { in seed_get_seed() 199 p = OPENSSL_secure_malloc(bytes_needed); in seed_get_seed() 204 if (seed_src_generate(vseed, p, bytes_needed, 0, prediction_resistance, in seed_get_seed() 207 return bytes_needed; in seed_get_seed() 209 OPENSSL_secure_clear_free(p, bytes_needed); in seed_get_seed()
|
D | drbg.c | 150 size_t bytes_needed; in ossl_drbg_get_seed() local 154 bytes_needed = entropy >= 0 ? (entropy + 7) / 8 : 0; in ossl_drbg_get_seed() 155 if (bytes_needed < min_len) in ossl_drbg_get_seed() 156 bytes_needed = min_len; in ossl_drbg_get_seed() 157 if (bytes_needed > max_len) in ossl_drbg_get_seed() 158 bytes_needed = max_len; in ossl_drbg_get_seed() 161 buffer = OPENSSL_secure_malloc(bytes_needed); in ossl_drbg_get_seed() 176 if (!ossl_prov_drbg_generate(drbg, buffer, bytes_needed, in ossl_drbg_get_seed() 179 OPENSSL_secure_clear_free(buffer, bytes_needed); in ossl_drbg_get_seed() 184 return bytes_needed; in ossl_drbg_get_seed()
|
/third_party/openssl/crypto/rand/ |
D | rand_pool.c | 248 size_t bytes_needed; in ossl_rand_pool_bytes_needed() local 256 bytes_needed = ENTROPY_TO_BYTES(entropy_needed, entropy_factor); in ossl_rand_pool_bytes_needed() 258 if (bytes_needed > pool->max_len - pool->len) { in ossl_rand_pool_bytes_needed() 265 bytes_needed < pool->min_len - pool->len) in ossl_rand_pool_bytes_needed() 267 bytes_needed = pool->min_len - pool->len; in ossl_rand_pool_bytes_needed() 281 if (!rand_pool_grow(pool, bytes_needed)) { in ossl_rand_pool_bytes_needed() 287 return bytes_needed; in ossl_rand_pool_bytes_needed()
|
/third_party/jerryscript/tests/unit-core/ |
D | test-context-data.cpp | 65 .bytes_needed = sizeof (const char *) 89 .bytes_needed = sizeof (const char *) 107 .bytes_needed = 0, 140 .bytes_needed = 0
|
/third_party/gstreamer/gstplugins_good/gst/isomp4/ |
D | qtatomparser.h | 29 qt_atom_parser_has_remaining (GstByteReader * parser, guint64 bytes_needed) in qt_atom_parser_has_remaining() argument 31 return G_LIKELY (parser->size >= bytes_needed) && in qt_atom_parser_has_remaining() 32 G_LIKELY ((parser->size - bytes_needed) >= parser->byte); in qt_atom_parser_has_remaining()
|
/third_party/gstreamer/gstplugins_good/gst/matroska/ |
D | ebml-read.h | 156 gst_ebml_read_has_remaining (GstEbmlRead * ebml, guint64 bytes_needed, in gst_ebml_read_has_remaining() argument 161 res = (gst_byte_reader_get_remaining (gst_ebml_read_br (ebml)) >= bytes_needed); in gst_ebml_read_has_remaining()
|
/third_party/gstreamer/gstplugins_good/gst/audioparsers/ |
D | gstmpegaudioparse.c | 842 guint bytes_needed = offset_xing + 8; in gst_mpeg_audio_parse_handle_first_frame() local 855 bytes_needed += 4; in gst_mpeg_audio_parse_handle_first_frame() 857 bytes_needed += 4; in gst_mpeg_audio_parse_handle_first_frame() 859 bytes_needed += 100; in gst_mpeg_audio_parse_handle_first_frame() 861 bytes_needed += 4; in gst_mpeg_audio_parse_handle_first_frame() 862 if (avail < bytes_needed) { in gst_mpeg_audio_parse_handle_first_frame() 864 "Not enough data to read Xing header (need %d)", bytes_needed); in gst_mpeg_audio_parse_handle_first_frame() 985 if (avail - bytes_needed >= 36 && GST_READ_UINT32_BE (data) == lame_id) { in gst_mpeg_audio_parse_handle_first_frame()
|
/third_party/ffmpeg/libavcodec/ |
D | mjpegenc.c | 86 size_t bytes_needed; in mjpeg_encode_picture_frame() local 98 bytes_needed = (total_bits + 7) / 8; in mjpeg_encode_picture_frame() 99 ff_mpv_reallocate_putbitbuffer(s, bytes_needed, bytes_needed); in mjpeg_encode_picture_frame()
|
/third_party/ffmpeg/libavformat/ |
D | mp3enc.c | 157 int bytes_needed; in mp3_write_xing() local 212 bytes_needed = mp3->xing_offset + XING_SIZE; in mp3_write_xing() 214 if (bytes_needed <= mpah.frame_size) in mp3_write_xing() 275 ffio_fill(dyn_ctx, 0, mpah.frame_size - bytes_needed); in mp3_write_xing()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/internal/ |
D | hash.h | 1024 const size_t bytes_needed = PiecewiseChunkSize() - position_; 1025 memcpy(buf_ + position_, data, bytes_needed); 1027 data += bytes_needed; 1028 size -= bytes_needed;
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | nucnvtst.c | 5415 int32_t rules_length, target_cap, bytes_needed, buff_size; in TestJitterbug981() local 5451 bytes_needed = ucnv_fromUChars(utf8cnv, buff, target_cap, in TestJitterbug981() 5453 target_cap = (bytes_needed > target_cap) ? bytes_needed : target_cap +1; in TestJitterbug981() 5454 if(numNeeded!=0 && numNeeded!= bytes_needed){ in TestJitterbug981() 5458 numNeeded = bytes_needed; in TestJitterbug981() 5473 int32_t target_cap, bytes_needed, numNeeded = 0; in TestJitterbug1293() local 5482 bytes_needed = ucnv_fromUChars(conv,target,256,src,u_strlen(src),&status); in TestJitterbug1293() 5483 target_cap = (bytes_needed > target_cap) ? bytes_needed : target_cap +1; in TestJitterbug1293() 5484 if(numNeeded!=0 && numNeeded!= bytes_needed){ in TestJitterbug1293() 5487 numNeeded = bytes_needed; in TestJitterbug1293()
|
/third_party/jerryscript/jerry-core/api/ |
D | jerry.c | 267 …void *data = (this_p->manager_p->bytes_needed > 0) ? JERRY_CONTEXT_DATA_HEADER_USER_DATA (this_p) … in jerry_cleanup() 285 …void *data = (this_p->manager_p->bytes_needed > 0) ? JERRY_CONTEXT_DATA_HEADER_USER_DATA (this_p) … in jerry_cleanup() 288 …m_heap_free_block (this_p, sizeof (jerry_context_data_header_t) + this_p->manager_p->bytes_needed); in jerry_cleanup() 312 return (manager_p->bytes_needed > 0) ? JERRY_CONTEXT_DATA_HEADER_USER_DATA (item_p) : NULL; in jerry_get_context_data() 316 item_p = jmem_heap_alloc_block (sizeof (jerry_context_data_header_t) + manager_p->bytes_needed); in jerry_get_context_data() 321 if (manager_p->bytes_needed > 0) in jerry_get_context_data() 324 memset (ret, 0, manager_p->bytes_needed); in jerry_get_context_data()
|
/third_party/jerryscript/jerry-ext/module/ |
D | module.c | 78 .bytes_needed = sizeof (jerry_value_t)
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 4003 unsigned bytes_needed, unsigned align, unsigned const_offset, 4029 unsigned bytes_needed = load_size - bytes_read; in emit_load() local 4038 if (bytes_needed > 2 || (bytes_needed == 2 && (align_mul % 2 || align_offset % 2)) || in emit_load() 4042 bytes_needed = 2; in emit_load() 4045 bytes_needed += byte_align == -1 ? 4 - info.align_mul : byte_align; in emit_load() 4046 bytes_needed = align(bytes_needed, 4); in emit_load() 4054 bytes_needed = MIN2(bytes_needed, info.swizzle_component_size); in emit_load() 4056 bytes_needed = MIN2(bytes_needed, info.component_size); in emit_load() 4130 Temp val = params.callback(bld, info, aligned_offset_tmp, bytes_needed, align, in emit_load() 4271 lds_load_callback(Builder& bld, const LoadEmitInfo& info, Temp offset, unsigned bytes_needed, in lds_load_callback() argument [all …]
|
/third_party/jerryscript/jerry-core/include/ |
D | jerryscript-core.h | 302 size_t bytes_needed; member
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
D | IceAssemblerX8632.cpp | 3046 intptr_t bytes_needed = alignment - mod; in align() local 3047 while (bytes_needed > MAX_NOP_SIZE) { in align() 3049 bytes_needed -= MAX_NOP_SIZE; in align() 3051 if (bytes_needed) { in align() 3052 nop(bytes_needed); in align()
|
D | IceAssemblerX8664.cpp | 3210 intptr_t bytes_needed = alignment - mod; in align() local 3211 while (bytes_needed > MAX_NOP_SIZE) { in align() 3213 bytes_needed -= MAX_NOP_SIZE; in align() 3215 if (bytes_needed) { in align() 3216 nop(bytes_needed); in align()
|
/third_party/jerryscript/docs/ |
D | 02.API-REFERENCE.md | 245 If bytes_needed field is 0, no buffer is allocated for the manager, callback functions are called w… 257 … * determined by the bytes_needed field. The buffer is kept alive until jerry_cleanup () is called. 289 size_t bytes_needed; 793 .bytes_needed = sizeof (my_context_data_t)
|