/third_party/node/deps/openssl/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/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/node/deps/openssl/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/node/deps/openssl/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/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/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/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;
|