/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jcphuff.c | 13 * This file contains Huffman entropy encoding routines for progressive JPEG. 76 /* Expanded entropy encoder object for progressive Huffman encoding. */ 207 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff() local 212 entropy->cinfo = cinfo; in start_pass_phuff() 213 entropy->gather_statistics = gather_statistics; in start_pass_phuff() 222 entropy->pub.encode_mcu = encode_mcu_DC_first; in start_pass_phuff() 224 entropy->pub.encode_mcu = encode_mcu_AC_first; in start_pass_phuff() 226 entropy->AC_first_prepare = jsimd_encode_mcu_AC_first_prepare; in start_pass_phuff() 228 entropy in start_pass_phuff() 313 dump_buffer(phuff_entropy_ptr entropy) dump_buffer() argument 335 emit_bits(phuff_entropy_ptr entropy, unsigned int code, int size) emit_bits() argument 374 flush_bits(phuff_entropy_ptr entropy) flush_bits() argument 387 emit_symbol(phuff_entropy_ptr entropy, int tbl_no, int symbol) emit_symbol() argument 403 emit_buffered_bits(phuff_entropy_ptr entropy, char *bufstart, unsigned int nbits) emit_buffered_bits() argument 422 emit_eobrun(phuff_entropy_ptr entropy) emit_eobrun() argument 451 emit_restart(phuff_entropy_ptr entropy, int restart_num) emit_restart() argument 483 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 662 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 754 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 926 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 1027 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; finish_pass_phuff() local 1048 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; finish_pass_gather_phuff() local 1095 phuff_entropy_ptr entropy; jinit_phuff_encoder() local [all...] |
H A D | jdarith.c | 11 * This file contains portable arithmetic entropy encoding routines for JPEG 30 /* Expanded entropy decoder object for arithmetic decoding. */ 117 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_decode() 201 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in process_restart() local 213 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in process_restart() 215 entropy->last_dc_val[ci] = 0; in process_restart() 216 entropy->dc_context[ci] = 0; in process_restart() 219 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in process_restart() 224 entropy in process_restart() 252 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 331 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 405 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 438 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 507 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 634 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; start_pass() local 752 arith_entropy_ptr entropy; jinit_arith_decoder() local [all...] |
H A D | jcarith.c | 11 * This file contains portable arithmetic entropy encoding routines for JPEG 27 /* Expanded entropy encoder object for arithmetic encoding. */ 141 arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in finish_pass() 227 register arith_entropy_ptr e = (arith_entropy_ptr)cinfo->entropy; in arith_encode() 327 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; in emit_restart() local 341 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); in emit_restart() 343 entropy->last_dc_val[ci] = 0; in emit_restart() 344 entropy->dc_context[ci] = 0; in emit_restart() 348 MEMZERO(entropy in emit_restart() 370 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 461 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 560 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 595 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 688 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; METHODDEF() local 830 arith_entropy_ptr entropy = (arith_entropy_ptr)cinfo->entropy; start_pass() local 914 arith_entropy_ptr entropy; jinit_arith_encoder() local [all...] |
H A D | jdphuff.c | 11 * This file contains Huffman entropy decoding routines for progressive JPEG. 33 * Expanded entropy decoder object for progressive Huffman decoding. 205 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff_decoder() local 270 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder() 272 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder() 275 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder() 277 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder() 288 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder() 298 pdtbl = (d_derived_tbl **)(entropy in start_pass_phuff_decoder() 365 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; LOCAL() local 423 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 499 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 585 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 635 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; METHODDEF() local 786 phuff_entropy_ptr entropy; jinit_phuff_decoder() local [all...] |
H A D | jdhuff.c | 12 * This file contains Huffman entropy decoding routines. 33 * Expanded entropy decoder object for Huffman decoding. 79 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff_decoder() local 98 pdtbl = (d_derived_tbl **)(entropy->dc_derived_tbls) + dctbl; in start_pass_huff_decoder() 100 pdtbl = (d_derived_tbl **)(entropy->ac_derived_tbls) + actbl; in start_pass_huff_decoder() 103 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder() 111 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder() 112 entropy in start_pass_huff_decoder() 512 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; LOCAL() local 552 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; LOCAL() local 657 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; LOCAL() local 761 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; METHODDEF() local 805 huff_entropy_ptr entropy; jinit_huff_decoder() local [all...] |
H A D | jchuff.c | 14 * This file contains Huffman entropy encoding routines. 68 /* Expanded entropy encoder object for Huffman encoding. 166 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff() local 172 entropy->pub.encode_mcu = encode_mcu_gather; in start_pass_huff() 173 entropy->pub.finish_pass = finish_pass_gather; in start_pass_huff() 178 entropy->pub.encode_mcu = encode_mcu_huff; in start_pass_huff() 179 entropy->pub.finish_pass = finish_pass_huff; in start_pass_huff() 182 entropy->simd = jsimd_can_huff_encode_one_block(); in start_pass_huff() 198 if (entropy in start_pass_huff() 687 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; METHODDEF() local 759 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; finish_pass_huff() local 872 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; METHODDEF() local 1075 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; finish_pass_gather() local 1120 huff_entropy_ptr entropy; jinit_huff_encoder() local [all...] |
H A D | jdhuff_opt.c | 12 * This file contains Huffman entropy decoding routines. 33 * Expanded entropy decoder object for Huffman decoding. 109 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff_decoder() local 128 pdtbl = (d_derived_tbl **)(entropy->dc_derived_tbls) + dctbl; in start_pass_huff_decoder() 130 pdtbl = (d_derived_tbl **)(entropy->ac_derived_tbls) + actbl; in start_pass_huff_decoder() 133 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder() 141 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder() 142 entropy in start_pass_huff_decoder() 606 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; LOCAL() local 646 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; LOCAL() local 817 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; LOCAL() local 975 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; METHODDEF() local 1017 huff_entropy_ptr entropy; jinit_huff_decoder() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/rand/ |
H A D | rand_pool.c | 66 size_t entropy) in ossl_rand_pool_attach() 86 pool->entropy = entropy; in ossl_rand_pool_attach() 124 * Return the |pool|'s entropy to the caller. 128 return pool->entropy; in ossl_rand_pool_entropy() 149 pool->entropy = 0; in ossl_rand_pool_detach() 165 * If |entropy_factor| bits contain 1 bit of entropy, how many bytes does one 166 * need to obtain at least |bits| bits of entropy? 173 * Checks whether the |pool|'s entropy is available to the caller. 174 * This is the case when entropy coun 65 ossl_rand_pool_attach(const unsigned char *buffer, size_t len, size_t entropy) ossl_rand_pool_attach() argument 305 ossl_rand_pool_add(RAND_POOL *pool, const unsigned char *buffer, size_t len, size_t entropy) ossl_rand_pool_add() argument 399 ossl_rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy) ossl_rand_pool_add_end() argument [all...] |
/third_party/openssl/crypto/rand/ |
H A D | rand_pool.c | 66 size_t entropy) in ossl_rand_pool_attach() 86 pool->entropy = entropy; in ossl_rand_pool_attach() 124 * Return the |pool|'s entropy to the caller. 128 return pool->entropy; in ossl_rand_pool_entropy() 149 pool->entropy = 0; in ossl_rand_pool_detach() 165 * If |entropy_factor| bits contain 1 bit of entropy, how many bytes does one 166 * need to obtain at least |bits| bits of entropy? 173 * Checks whether the |pool|'s entropy is available to the caller. 174 * This is the case when entropy coun 65 ossl_rand_pool_attach(const unsigned char *buffer, size_t len, size_t entropy) ossl_rand_pool_attach() argument 305 ossl_rand_pool_add(RAND_POOL *pool, const unsigned char *buffer, size_t len, size_t entropy) ossl_rand_pool_add() argument 399 ossl_rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy) ossl_rand_pool_add_end() argument [all...] |
/third_party/openssl/ohos_lite/include/crypto/ |
H A D | rand.h | 44 /* DRBG entropy callbacks. */ 47 int entropy, size_t min_len, size_t max_len, 53 int entropy, size_t min_len, size_t max_len); 67 size_t entropy); 79 /* |entropy_factor| expresses how many bits of data contain 1 bit of entropy */ 84 const unsigned char *buffer, size_t len, size_t entropy); 86 int rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy); 90 * Add random bytes to the pool to acquire requested amount of entropy 93 * amount of entropy by polling platform specific entropy source [all...] |
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
H A D | lossless_enc.c | 402 // Compute the combined Shanon's entropy for distribution {X} and {X+Y} 424 void VP8LBitEntropyInit(VP8LBitEntropy* const entropy) { in VP8LBitEntropyInit() argument 425 entropy->entropy = 0.; in VP8LBitEntropyInit() 426 entropy->sum = 0; in VP8LBitEntropyInit() 427 entropy->nonzeros = 0; in VP8LBitEntropyInit() 428 entropy->max_val = 0; in VP8LBitEntropyInit() 429 entropy->nonzero_code = VP8L_NON_TRIVIAL_SYM; in VP8LBitEntropyInit() 433 VP8LBitEntropy* const entropy) { in VP8LBitsEntropyUnrefined() 436 VP8LBitEntropyInit(entropy); in VP8LBitsEntropyUnrefined() 432 VP8LBitsEntropyUnrefined(const uint32_t* const array, int n, VP8LBitEntropy* const entropy) VP8LBitsEntropyUnrefined() argument [all...] |
H A D | lossless_enc_mips32.c | 225 // Gather info for the bit entropy. in GetEntropyUnrefinedHelper() 230 bit_entropy->entropy -= VP8LFastSLog2(*val_prev) * streak; in GetEntropyUnrefinedHelper() 262 bit_entropy->entropy += VP8LFastSLog2(bit_entropy->sum); in GetEntropyUnrefined_MIPS32() 268 VP8LBitEntropy* const entropy, in GetCombinedEntropyUnrefined_MIPS32() 275 VP8LBitEntropyInit(entropy); in GetCombinedEntropyUnrefined_MIPS32() 280 GetEntropyUnrefinedHelper(xy, i, &xy_prev, &i_prev, entropy, stats); in GetCombinedEntropyUnrefined_MIPS32() 283 GetEntropyUnrefinedHelper(0, i, &xy_prev, &i_prev, entropy, stats); in GetCombinedEntropyUnrefined_MIPS32() 285 entropy->entropy += VP8LFastSLog2(entropy in GetCombinedEntropyUnrefined_MIPS32() 265 GetCombinedEntropyUnrefined_MIPS32(const uint32_t X[], const uint32_t Y[], int length, VP8LBitEntropy* const entropy, VP8LStreaks* const stats) GetCombinedEntropyUnrefined_MIPS32() argument [all...] |
/third_party/mbedtls/programs/random/ |
H A D | gen_entropy.c | 25 #include "mbedtls/entropy.h" 44 mbedtls_entropy_context entropy; in main() local 57 mbedtls_entropy_init(&entropy); in main() 60 ret = mbedtls_entropy_func(&entropy, buf, sizeof(buf)); in main() 83 mbedtls_entropy_free(&entropy); in main()
|
H A D | gen_random_ctr_drbg.c | 26 #include "mbedtls/entropy.h" 48 mbedtls_entropy_context entropy; in main() local 63 mbedtls_entropy_init(&entropy); in main() 66 &entropy, in main() 115 mbedtls_entropy_free(&entropy); in main()
|
/third_party/mbedtls/library/ |
H A D | psa_crypto_random_impl.h | 21 #include "mbedtls/entropy.h" 80 mbedtls_entropy_context entropy; member 112 * \param entropy An entropy context to read the seed from. 122 mbedtls_entropy_context *entropy, in mbedtls_psa_drbg_seed() 126 return mbedtls_ctr_drbg_seed(drbg_ctx, mbedtls_entropy_func, entropy, custom, len); in mbedtls_psa_drbg_seed() 129 return mbedtls_hmac_drbg_seed(drbg_ctx, md_info, mbedtls_entropy_func, entropy, custom, len); in mbedtls_psa_drbg_seed() 121 mbedtls_psa_drbg_seed(mbedtls_psa_drbg_context_t *drbg_ctx, mbedtls_entropy_context *entropy, const unsigned char *custom, size_t len) mbedtls_psa_drbg_seed() argument
|
/third_party/node/deps/openssl/openssl/include/crypto/ |
H A D | rand_pool.h | 27 * RAND_POOL can store a random input which has a lousy entropy rate of 33 * of entropy required when no get_nonce() callback is defined. 64 * input from various entropy sources. It is the callers duty to 1) initialize 81 size_t entropy; /* current entropy count in bits */ member 82 size_t entropy_requested; /* requested entropy count in bits */ 88 size_t entropy); 100 /* |entropy_factor| expresses how many bits of data contain 1 bit of entropy */ 105 const unsigned char *buffer, size_t len, size_t entropy); 107 int ossl_rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy); [all...] |
/third_party/openssl/include/crypto/ |
H A D | rand_pool.h | 27 * RAND_POOL can store a random input which has a lousy entropy rate of 33 * of entropy required when no get_nonce() callback is defined. 64 * input from various entropy sources. It is the callers duty to 1) initialize 81 size_t entropy; /* current entropy count in bits */ member 82 size_t entropy_requested; /* requested entropy count in bits */ 88 size_t entropy); 100 /* |entropy_factor| expresses how many bits of data contain 1 bit of entropy */ 105 const unsigned char *buffer, size_t len, size_t entropy); 107 int ossl_rand_pool_add_end(RAND_POOL *pool, size_t len, size_t entropy); [all...] |
/third_party/mbedtls/port/src/ |
H A D | tls_client.c | 48 int MbedtlsClientInit(MbedTLSSession *session, void *entropy, size_t entropyLen)
in MbedtlsClientInit() argument 50 if (session == NULL || entropy == NULL) {
in MbedtlsClientInit() 57 mbedtls_entropy_init(&session->entropy);
in MbedtlsClientInit() 59 int ret = mbedtls_ctr_drbg_seed(&session->ctr_drbg, mbedtls_entropy_func, &session->entropy,
in MbedtlsClientInit() 60 (unsigned char *)entropy, entropyLen);
in MbedtlsClientInit() 77 mbedtls_entropy_free(&session->entropy);
in MbedtlsClientClose()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
H A D | explicit_seed_seq_test.cc | 103 // invocation of generate() only consuming half of the input-entropy, the same in TEST() 104 // entropy will be recycled for the next invocation. in TEST() 131 uint32_t entropy[4]; in TEST() 133 for (uint32_t& entry : entropy) { in TEST() 136 absl::random_internal::ExplicitSeedSeq seq_from_entropy(std::begin(entropy), in TEST() 137 std::end(entropy)); in TEST() 155 for (uint32_t& entry : entropy) { in TEST() 158 absl::random_internal::ExplicitSeedSeq another_seq(std::begin(entropy), in TEST() 159 std::end(entropy)); in TEST() 184 // Get seeds from seed-sequence constructed from entropy in TEST() [all...] |
/third_party/musl/porting/liteos_m/kernel/src/env/ |
H A D | __stack_chk_fail.c | 7 void __init_ssp(void *entropy) in __init_ssp() argument 9 if (entropy) memcpy(&__stack_chk_guard, entropy, sizeof(uintptr_t)); in __init_ssp()
|
/third_party/musl/porting/uniproton/kernel/src/env/ |
H A D | __stack_chk_fail.c | 7 void __init_ssp(void *entropy) in __init_ssp() argument 9 if (entropy) memcpy(&__stack_chk_guard, entropy, sizeof(uintptr_t)); in __init_ssp()
|
/third_party/musl/src/env/ |
H A D | __stack_chk_fail.c | 7 void __init_ssp(void *entropy) in __init_ssp() argument 9 if (entropy) memcpy(&__stack_chk_guard, entropy, sizeof(uintptr_t)); in __init_ssp() 13 /* Sacrifice 8 bits of entropy on 64bit to prevent leaking/ in __init_ssp()
|
/third_party/mbedtls/programs/pkey/ |
H A D | rsa_sign_pss.c | 28 #include "mbedtls/entropy.h" 43 mbedtls_entropy_context entropy; in main() local 51 mbedtls_entropy_init(&entropy); in main() 77 if ((ret = mbedtls_ctr_drbg_seed(&ctr_drbg, mbedtls_entropy_func, &entropy, in main() 152 mbedtls_entropy_free(&entropy); in main()
|
H A D | pk_decrypt.c | 17 #include "mbedtls/entropy.h" 45 mbedtls_entropy_context entropy; in main() local 53 mbedtls_entropy_init(&entropy); in main() 81 &entropy, (const unsigned char *) pers, in main() 137 mbedtls_entropy_free(&entropy); in main()
|
/third_party/mbedtls/programs/fuzz/ |
H A D | fuzz_dtlsclient.c | 7 #include "mbedtls/entropy.h" 39 mbedtls_entropy_context entropy; in LLVMFuzzerTestOneInput() local 60 mbedtls_entropy_init(&entropy); in LLVMFuzzerTestOneInput() 70 if (mbedtls_ctr_drbg_seed(&ctr_drbg, dummy_entropy, &entropy, in LLVMFuzzerTestOneInput() 123 mbedtls_entropy_free(&entropy); in LLVMFuzzerTestOneInput()
|