Home
last modified time | relevance | path

Searched refs:bytes_needed (Results 1 – 21 of 21) sorted by relevance

/third_party/openssl/crypto/rand/
Drand_win.c49 size_t bytes_needed; in rand_pool_acquire_entropy() local
66 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in rand_pool_acquire_entropy()
67 buffer = rand_pool_add_begin(pool, bytes_needed); in rand_pool_acquire_entropy()
70 if (BCryptGenRandom(NULL, buffer, bytes_needed, in rand_pool_acquire_entropy()
72 bytes = bytes_needed; in rand_pool_acquire_entropy()
80 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in rand_pool_acquire_entropy()
81 buffer = rand_pool_add_begin(pool, bytes_needed); in rand_pool_acquire_entropy()
87 if (CryptGenRandom(hProvider, bytes_needed, buffer) != 0) in rand_pool_acquire_entropy()
88 bytes = bytes_needed; in rand_pool_acquire_entropy()
99 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in rand_pool_acquire_entropy()
[all …]
Drand_unix.c158 size_t bytes_needed; in rand_pool_acquire_entropy() local
169 bytes_needed = rand_pool_bytes_needed(pool, 4 /*entropy_factor*/); in rand_pool_acquire_entropy()
171 for (i = 0; i < bytes_needed; i++) { in rand_pool_acquire_entropy()
642 size_t bytes_needed; in rand_pool_acquire_entropy()
648 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in rand_pool_acquire_entropy()
649 while (bytes_needed != 0 && attempts-- > 0) { in rand_pool_acquire_entropy()
650 buffer = rand_pool_add_begin(pool, bytes_needed); in rand_pool_acquire_entropy()
651 bytes = syscall_random(buffer, bytes_needed); in rand_pool_acquire_entropy()
654 bytes_needed -= bytes; in rand_pool_acquire_entropy()
674 size_t bytes_needed; in rand_pool_acquire_entropy()
[all …]
Drand_lib.c87 size_t bytes_needed; in rand_acquire_entropy_from_cpu() local
90 bytes_needed = rand_pool_bytes_needed(pool, 1 /*entropy_factor*/); in rand_acquire_entropy_from_cpu()
91 if (bytes_needed > 0) { in rand_acquire_entropy_from_cpu()
92 buffer = rand_pool_add_begin(pool, bytes_needed); in rand_acquire_entropy_from_cpu()
97 if (OPENSSL_ia32_rdseed_bytes(buffer, bytes_needed) in rand_acquire_entropy_from_cpu()
98 == bytes_needed) { in rand_acquire_entropy_from_cpu()
99 rand_pool_add_end(pool, bytes_needed, 8 * bytes_needed); in rand_acquire_entropy_from_cpu()
102 if (OPENSSL_ia32_rdrand_bytes(buffer, bytes_needed) in rand_acquire_entropy_from_cpu()
103 == bytes_needed) { in rand_acquire_entropy_from_cpu()
104 rand_pool_add_end(pool, bytes_needed, 8 * bytes_needed); in rand_acquire_entropy_from_cpu()
[all …]
Drand_vms.c367 size_t bytes_needed = rand_pool_bytes_needed(pool, ENTROPY_FACTOR); in data_collect_method() local
460 if (!ossl_assert(total_length >= bytes_needed)) { in data_collect_method()
464 bytes_needed, total_length); in data_collect_method()
537 size_t bytes_needed; in get_entropy_method() local
541 for (bytes_needed = rand_pool_bytes_needed(pool, 1); in get_entropy_method()
542 bytes_needed > 0; in get_entropy_method()
543 bytes_needed -= bytes_to_get) { in get_entropy_method()
545 bytes_needed > sizeof(buffer) ? sizeof(buffer) : bytes_needed; in get_entropy_method()
/third_party/jerryscript/tests/unit-core/
Dtest-context-data.c62 .bytes_needed = sizeof (const char *)
86 .bytes_needed = sizeof (const char *)
104 .bytes_needed = 0,
137 .bytes_needed = 0
/third_party/gstreamer/gstplugins_good/gst/isomp4/
Dqtatomparser.h29 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/glib/gio/tests/
Dgdbus-message.c191 gssize bytes_needed; in message_bytes_needed() local
196 bytes_needed = g_dbus_message_bytes_needed ((guchar *) vectors[i].blob, in message_bytes_needed()
204 g_assert_cmpint (bytes_needed, ==, vectors[i].expected_bytes_needed); in message_bytes_needed()
/third_party/gstreamer/gstplugins_good/gst/matroska/
Debml-read.h156 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/
Dgstmpegaudioparse.c842 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/
Dmjpegenc.c86 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/
Dmp3enc.c157 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/abseil-cpp/absl/hash/internal/
Dhash.h966 const size_t bytes_needed = PiecewiseChunkSize() - position_;
967 memcpy(buf_ + position_, data, bytes_needed);
969 data += bytes_needed;
970 size -= bytes_needed;
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/internal/
Dhash.h1024 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/
Dnucnvtst.c5415 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/
Djerry.c267 …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/
Dmodule.c78 .bytes_needed = sizeof (jerry_value_t)
/third_party/mesa3d/src/amd/compiler/
Daco_instruction_selection.cpp3654 unsigned bytes_needed, unsigned align, unsigned const_offset,
3680 unsigned bytes_needed = load_size - bytes_read; in emit_load() local
3689 if (bytes_needed > 2 || (bytes_needed == 2 && (align_mul % 2 || align_offset % 2)) || in emit_load()
3693 bytes_needed = 2; in emit_load()
3696 bytes_needed += byte_align == -1 ? 4 - info.align_mul : byte_align; in emit_load()
3697 bytes_needed = align(bytes_needed, 4); in emit_load()
3705 bytes_needed = MIN2(bytes_needed, info.swizzle_component_size); in emit_load()
3707 bytes_needed = MIN2(bytes_needed, info.component_size); in emit_load()
3781 Temp val = params.callback(bld, info, aligned_offset_tmp, bytes_needed, align, in emit_load()
3922 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/
Djerryscript-core.h302 size_t bytes_needed; member
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceAssemblerX8632.cpp3046 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()
DIceAssemblerX8664.cpp3210 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/
D02.API-REFERENCE.md245 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)