/external/chromium_org/third_party/boringssl/src/crypto/rand/ |
H A D | rand.c | 24 void RAND_add(const void *buf, int num, double entropy) {} argument
|
/external/chromium_org/components/rappor/ |
H A D | byte_vector_utils_unittest.cc | 80 const char entropy[] = local 89 std::string entropy_input = HexToString(entropy) + HexToString(nonce);
|
/external/chromium_org/net/quic/ |
H A D | quic_sent_entropy_manager.h | 5 // Manages the packet entropy calculation for both sent and received packets 23 // Records all sent packets by a connection to track the cumulative entropy of 36 // Retrieves the cumulative entropy up to |sequence_number|. 41 // Returns true if |entropy_hash| matches the expected sent entropy hash 57 CumulativeEntropy() : sequence_number(0), entropy(0) {} 60 QuicPacketEntropyHash entropy; member in struct:net::QuicSentEntropyManager::CumulativeEntropy 66 // Convenience method to get the entropy hash for |sequence_number|. 70 // Update the cumulative entropy to |sequence_number|. 74 // Maps sequence numbers to the sent entropy hash for the sequence number. 78 // Cache the cumulative entropy fo [all...] |
/external/chromium_org/third_party/brotli/src/brotli/enc/ |
H A D | bit_cost.h | 41 const EntropyCode<kCodeLengthCodes>& entropy) { 42 return HuffmanTreeBitCost(&histogram.data_[0], &entropy.depth_[0]); 39 HuffmanTreeBitCost( const Histogram<kCodeLengthCodes>& histogram, const EntropyCode<kCodeLengthCodes>& entropy) argument
|
/external/chromium_org/third_party/opus/src/celt/tests/ |
H A D | test_unit_entropy.c | 57 double entropy; local 68 entropy=0; 85 entropy+=log(ft)*M_LOG2E; 92 entropy+=ftb; 106 "Encoded %0.2lf bits of entropy to %0.2lf bits (%0.3lf%% wasted).\n", 107 entropy,ldexp(nbits,-3),100*(nbits-ldexp(entropy,3))/nbits);
|
/external/libopus/celt/tests/ |
H A D | test_unit_entropy.c | 57 double entropy; local 68 entropy=0; 85 entropy+=log(ft)*M_LOG2E; 92 entropy+=ftb; 106 "Encoded %0.2lf bits of entropy to %0.2lf bits (%0.3lf%% wasted).\n", 107 entropy,ldexp(nbits,-3),100*(nbits-ldexp(entropy,3))/nbits);
|
/external/wpa_supplicant_8/hostapd/src/eap_common/ |
H A D | eap_pax_common.c | 22 * @entropy: Exchanged entropy to seed the KDF (Z) 23 * @entropy_len: Length of the entropy in bytes 32 const u8 *entropy, size_t entropy_len, 51 addr[1] = entropy; 30 eap_pax_kdf(u8 mac_id, const u8 *key, size_t key_len, const char *identifier, const u8 *entropy, size_t entropy_len, size_t output_len, u8 *output) argument
|
/external/wpa_supplicant_8/src/eap_common/ |
H A D | eap_pax_common.c | 22 * @entropy: Exchanged entropy to seed the KDF (Z) 23 * @entropy_len: Length of the entropy in bytes 32 const u8 *entropy, size_t entropy_len, 51 addr[1] = entropy; 30 eap_pax_kdf(u8 mac_id, const u8 *key, size_t key_len, const char *identifier, const u8 *entropy, size_t entropy_len, size_t output_len, u8 *output) argument
|
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/ |
H A D | eap_pax_common.c | 22 * @entropy: Exchanged entropy to seed the KDF (Z) 23 * @entropy_len: Length of the entropy in bytes 32 const u8 *entropy, size_t entropy_len, 51 addr[1] = entropy; 30 eap_pax_kdf(u8 mac_id, const u8 *key, size_t key_len, const char *identifier, const u8 *entropy, size_t entropy_len, size_t output_len, u8 *output) argument
|
/external/chromium_org/third_party/libjpeg_turbo/ |
H A D | jcarith.c | 8 * This file contains portable arithmetic entropy encoding routines for JPEG 21 /* Expanded entropy encoder object for arithmetic encoding. */ 135 arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; 221 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; 321 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 335 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); 337 entropy->last_dc_val[ci] = 0; 338 entropy->dc_context[ci] = 0; 342 MEMZERO(entropy 364 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 455 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 554 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 589 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 682 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 824 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 907 arith_entropy_ptr entropy; local [all...] |
H A D | jdarith.c | 8 * This file contains portable arithmetic entropy decoding routines for JPEG 21 /* Expanded entropy decoder object for arithmetic decoding. */ 108 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; 192 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 204 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); 206 entropy->last_dc_val[ci] = 0; 207 entropy->dc_context[ci] = 0; 210 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); 215 entropy 243 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 322 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 396 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 429 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 498 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 623 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 732 arith_entropy_ptr entropy; local [all...] |
H A D | jdphuff.c | 8 * This file contains Huffman entropy decoding routines for progressive JPEG. 26 * Expanded entropy decoder object for progressive Huffman decoding. 94 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 151 entropy->pub.decode_mcu = decode_mcu_DC_first; 153 entropy->pub.decode_mcu = decode_mcu_AC_first; 156 entropy->pub.decode_mcu = decode_mcu_DC_refine; 158 entropy->pub.decode_mcu = decode_mcu_AC_refine; 170 & entropy->derived_tbls[tbl]); 175 & entropy 231 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 289 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 360 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 445 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 494 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 644 phuff_entropy_ptr entropy; local [all...] |
H A D | jcphuff.c | 8 * This file contains Huffman entropy encoding routines for progressive JPEG. 22 /* Expanded entropy encoder object for progressive Huffman encoding. */ 108 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 113 entropy->cinfo = cinfo; 114 entropy->gather_statistics = gather_statistics; 123 entropy->pub.encode_mcu = encode_mcu_DC_first; 125 entropy->pub.encode_mcu = encode_mcu_AC_first; 128 entropy->pub.encode_mcu = encode_mcu_DC_refine; 130 entropy 205 dump_buffer(phuff_entropy_ptr entropy) argument 227 emit_bits(phuff_entropy_ptr entropy, unsigned int code, int size) argument 266 flush_bits(phuff_entropy_ptr entropy) argument 279 emit_symbol(phuff_entropy_ptr entropy, int tbl_no, int symbol) argument 295 emit_buffered_bits(phuff_entropy_ptr entropy, char * bufstart, unsigned int nbits) argument 314 emit_eobrun(phuff_entropy_ptr entropy) argument 345 emit_restart(phuff_entropy_ptr entropy, int restart_num) argument 377 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 464 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 571 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 618 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 746 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 767 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 814 phuff_entropy_ptr entropy; local [all...] |
H A D | jdhuff.c | 10 * This file contains Huffman entropy decoding routines. 27 * Expanded entropy decoder object for Huffman decoding. 91 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 110 & entropy->dc_derived_tbls[dctbl]); 112 & entropy->ac_derived_tbls[actbl]); 114 entropy->saved.last_dc_val[ci] = 0; 122 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; 123 entropy 519 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 553 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 648 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 751 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 795 huff_entropy_ptr entropy; local [all...] |
/external/jpeg/ |
H A D | jdphuff.c | 8 * This file contains Huffman entropy decoding routines for progressive JPEG. 26 * Expanded entropy decoder object for progressive Huffman decoding. 93 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 150 entropy->pub.decode_mcu = decode_mcu_DC_first; 152 entropy->pub.decode_mcu = decode_mcu_AC_first; 155 entropy->pub.decode_mcu = decode_mcu_DC_refine; 157 entropy->pub.decode_mcu = decode_mcu_AC_refine; 169 & entropy->derived_tbls[tbl]); 174 & entropy 229 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 287 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 358 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 443 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 492 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 642 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 671 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 685 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 711 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 722 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 742 phuff_entropy_ptr entropy; local [all...] |
H A D | jchuff.c | 8 * This file contains Huffman entropy encoding routines. 23 /* Expanded entropy encoder object for Huffman encoding. 108 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 114 entropy->pub.encode_mcu = encode_mcu_gather; 115 entropy->pub.finish_pass = finish_pass_gather; 120 entropy->pub.encode_mcu = encode_mcu_huff; 121 entropy->pub.finish_pass = finish_pass_huff; 138 if (entropy->dc_count_ptrs[dctbl] == NULL) 139 entropy 478 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 535 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 647 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 848 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 893 huff_entropy_ptr entropy; local [all...] |
/external/openssl/crypto/rand/ |
H A D | md_rand.c | 143 static double entropy=0; variable 188 entropy=0; 317 * much entropy as fits into md. */ 322 if (entropy < ENTROPY_NEEDED) /* stop counting when we have enough */ 323 entropy += add; 403 ok = (entropy >= ENTROPY_NEEDED); 408 * state; thus we have to decrease the entropy estimate. 410 * adjust the entropy count, though, because we're not ambitious 414 * we have enough entropy. Entropy should be collected 416 * output pool only when the entropy limi [all...] |
H A D | rand_lib.c | 154 void RAND_add(const void *buf, int num, double entropy) argument 158 meth->add(buf,num,entropy); 192 * entropy internally through RAND_poll(). 196 int entropy, size_t min_len, size_t max_len) 240 double entropy) 242 RAND_SSLeay()->add(in, inlen, entropy); 195 drbg_get_entropy(DRBG_CTX *ctx, unsigned char **pout, int entropy, size_t min_len, size_t max_len) argument 239 drbg_rand_add(DRBG_CTX *ctx, const void *in, int inlen, double entropy) argument
|
/external/pdfium/core/src/fxcodec/libjpeg/ |
H A D | fpdfapi_jdhuff.c | 9 * This file contains Huffman entropy decoding routines.
28 * Expanded entropy decoder object for Huffman decoding.
92 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy;
local 111 & entropy->dc_derived_tbls[dctbl]);
113 & entropy->ac_derived_tbls[actbl]);
115 entropy->saved.last_dc_val[ci] = 0;
123 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no];
124 entropy 474 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 523 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 641 huff_entropy_ptr entropy; local [all...] |
H A D | fpdfapi_jdphuff.c | 9 * This file contains Huffman entropy decoding routines for progressive JPEG.
27 * Expanded entropy decoder object for progressive Huffman decoding.
95 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy;
local 152 entropy->pub.decode_mcu = decode_mcu_DC_first;
154 entropy->pub.decode_mcu = decode_mcu_AC_first;
157 entropy->pub.decode_mcu = decode_mcu_DC_refine;
159 entropy->pub.decode_mcu = decode_mcu_AC_refine;
171 & entropy->derived_tbls[tbl]);
176 & entropy 231 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 289 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 360 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 445 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 494 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 644 phuff_entropy_ptr entropy; local [all...] |
/external/qemu/distrib/jpeg-6b/ |
H A D | jdphuff.c | 8 * This file contains Huffman entropy decoding routines for progressive JPEG. 26 * Expanded entropy decoder object for progressive Huffman decoding. 97 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 154 entropy->pub.decode_mcu = decode_mcu_DC_first; 156 entropy->pub.decode_mcu = decode_mcu_AC_first; 159 entropy->pub.decode_mcu = decode_mcu_DC_refine; 161 entropy->pub.decode_mcu = decode_mcu_AC_refine; 173 & entropy->derived_tbls[tbl]); 178 & entropy 233 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 291 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 362 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 447 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 496 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 647 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 663 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 692 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 706 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 728 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 748 phuff_entropy_ptr entropy; local [all...] |
/external/wpa_supplicant_8/hostapd/src/crypto/ |
H A D | random.c | 8 * This random number generator is used to provide additional entropy to the 60 static unsigned int entropy = 0; variable 132 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { 134 * No need to add more entropy at this point, so save CPU and 139 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u", 140 count, entropy); 149 entropy++; 160 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u", 161 (unsigned int) len, entropy); 168 /* Mix in additional entropy extracte [all...] |
/external/wpa_supplicant_8/src/crypto/ |
H A D | random.c | 8 * This random number generator is used to provide additional entropy to the 60 static unsigned int entropy = 0; variable 132 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { 134 * No need to add more entropy at this point, so save CPU and 139 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u", 140 count, entropy); 149 entropy++; 160 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u", 161 (unsigned int) len, entropy); 168 /* Mix in additional entropy extracte [all...] |
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/ |
H A D | random.c | 8 * This random number generator is used to provide additional entropy to the 60 static unsigned int entropy = 0; variable 132 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { 134 * No need to add more entropy at this point, so save CPU and 139 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u", 140 count, entropy); 149 entropy++; 160 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u", 161 (unsigned int) len, entropy); 168 /* Mix in additional entropy extracte [all...] |
/external/chromium_org/base/metrics/ |
H A D | field_trial_unittest.cc | 925 // Try each boundary value |i / 100.0| as the entropy value. 927 const double entropy = i / static_cast<double>(kBucketCount); local 930 new base::FieldTrial("test", kBucketCount, "default", entropy));
|