Home
last modified time | relevance | path

Searched refs:entropy (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/external/libjpeg-turbo/
Djcphuff.c200 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff() local
205 entropy->cinfo = cinfo; in start_pass_phuff()
206 entropy->gather_statistics = gather_statistics; in start_pass_phuff()
215 entropy->pub.encode_mcu = encode_mcu_DC_first; in start_pass_phuff()
217 entropy->pub.encode_mcu = encode_mcu_AC_first; in start_pass_phuff()
219 entropy->AC_first_prepare = jsimd_encode_mcu_AC_first_prepare; in start_pass_phuff()
221 entropy->AC_first_prepare = encode_mcu_AC_first_prepare; in start_pass_phuff()
224 entropy->pub.encode_mcu = encode_mcu_DC_refine; in start_pass_phuff()
226 entropy->pub.encode_mcu = encode_mcu_AC_refine; in start_pass_phuff()
228 entropy->AC_refine_prepare = jsimd_encode_mcu_AC_refine_prepare; in start_pass_phuff()
[all …]
Djcarith.c141 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->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); in emit_restart()
353 entropy->c = 0; in emit_restart()
354 entropy->a = 0x10000L; in emit_restart()
355 entropy->sc = 0; in emit_restart()
[all …]
Djdarith.c117 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->c = 0; in process_restart()
225 entropy->a = 0; in process_restart()
226 entropy->ct = -16; /* force reading 2 initial bytes to fill C */ in process_restart()
229 entropy->restarts_to_go = cinfo->restart_interval; in process_restart()
[all …]
Djdphuff.c101 phuff_entropy_ptr entropy = (phuff_entropy_ptr)cinfo->entropy; in start_pass_phuff_decoder() local
159 entropy->pub.decode_mcu = decode_mcu_DC_first; in start_pass_phuff_decoder()
161 entropy->pub.decode_mcu = decode_mcu_AC_first; in start_pass_phuff_decoder()
164 entropy->pub.decode_mcu = decode_mcu_DC_refine; in start_pass_phuff_decoder()
166 entropy->pub.decode_mcu = decode_mcu_AC_refine; in start_pass_phuff_decoder()
177 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
182 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; in start_pass_phuff_decoder()
185 entropy->ac_derived_tbl = entropy->derived_tbls[tbl]; in start_pass_phuff_decoder()
188 entropy->saved.last_dc_val[ci] = 0; in start_pass_phuff_decoder()
192 entropy->bitstate.bits_left = 0; in start_pass_phuff_decoder()
[all …]
Djdhuff.c96 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff_decoder() local
115 pdtbl = (d_derived_tbl **)(entropy->dc_derived_tbls) + dctbl; in start_pass_huff_decoder()
117 pdtbl = (d_derived_tbl **)(entropy->ac_derived_tbls) + actbl; in start_pass_huff_decoder()
120 entropy->saved.last_dc_val[ci] = 0; in start_pass_huff_decoder()
128 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; in start_pass_huff_decoder()
129 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no]; in start_pass_huff_decoder()
132 entropy->dc_needed[blkn] = TRUE; in start_pass_huff_decoder()
134 entropy->ac_needed[blkn] = (compptr->_DCT_scaled_size > 1); in start_pass_huff_decoder()
136 entropy->dc_needed[blkn] = entropy->ac_needed[blkn] = FALSE; in start_pass_huff_decoder()
141 entropy->bitstate.bits_left = 0; in start_pass_huff_decoder()
[all …]
Djchuff.c148 huff_entropy_ptr entropy = (huff_entropy_ptr)cinfo->entropy; in start_pass_huff() local
154 entropy->pub.encode_mcu = encode_mcu_gather; in start_pass_huff()
155 entropy->pub.finish_pass = finish_pass_gather; in start_pass_huff()
160 entropy->pub.encode_mcu = encode_mcu_huff; in start_pass_huff()
161 entropy->pub.finish_pass = finish_pass_huff; in start_pass_huff()
164 entropy->simd = jsimd_can_huff_encode_one_block(); in start_pass_huff()
180 if (entropy->dc_count_ptrs[dctbl] == NULL) in start_pass_huff()
181 entropy->dc_count_ptrs[dctbl] = (long *) in start_pass_huff()
184 MEMZERO(entropy->dc_count_ptrs[dctbl], 257 * sizeof(long)); in start_pass_huff()
185 if (entropy->ac_count_ptrs[actbl] == NULL) in start_pass_huff()
[all …]
/external/rappor/client/javatest/com/google/android/rappor/
DHmacDrbgTest.java29 byte[] entropy = in testHmacDrbgNistCase0()
38 HmacDrbg drbg = new HmacDrbg(Bytes.concat(entropy, nonce), null); in testHmacDrbgNistCase0()
48 byte[] entropy = in testHmacDrbgNistCase1()
57 HmacDrbg drbg = new HmacDrbg(Bytes.concat(entropy, nonce), null); in testHmacDrbgNistCase1()
67 byte[] entropy = in testHmacDrbgNistCase2()
76 HmacDrbg drbg = new HmacDrbg(Bytes.concat(entropy, nonce), null); in testHmacDrbgNistCase2()
86 byte[] entropy = in testHmacDrbgNistCase3()
95 HmacDrbg drbg = new HmacDrbg(Bytes.concat(entropy, nonce), null); in testHmacDrbgNistCase3()
105 byte[] entropy = in testHmacDrbgNistCase4()
114 HmacDrbg drbg = new HmacDrbg(Bytes.concat(entropy, nonce), null); in testHmacDrbgNistCase4()
[all …]
/external/ImageMagick/MagickCore/
Drandom.c173 *entropy, in AcquireRandomInfo() local
210 entropy=GenerateEntropicChaos(random_info); in AcquireRandomInfo()
211 if (entropy == (StringInfo *) NULL) in AcquireRandomInfo()
213 UpdateSignature(random_info->signature_info,entropy); in AcquireRandomInfo()
217 entropy=DestroyStringInfo(entropy); in AcquireRandomInfo()
356 *entropy; in GenerateEntropicChaos() local
368 entropy=AcquireStringInfo(0); in GenerateEntropicChaos()
371 SetStringInfoDatum(chaos,(unsigned char *) &entropy); in GenerateEntropicChaos()
372 ConcatenateStringInfo(entropy,chaos); in GenerateEntropicChaos()
373 SetStringInfoDatum(chaos,(unsigned char *) entropy); in GenerateEntropicChaos()
[all …]
/external/boringssl/src/crypto/fipsmodule/rand/
Drand.c180 uint8_t entropy[CTR_DRBG_ENTROPY_LEN * FIPS_OVERREAD]; in rand_get_seed() local
182 if (!hwrand(entropy, sizeof(entropy))) { in rand_get_seed()
183 CRYPTO_sysrand(entropy, sizeof(entropy)); in rand_get_seed()
189 if (CRYPTO_memcmp(state->last_block, entropy, CRNGT_BLOCK_SIZE) == 0) { in rand_get_seed()
194 for (size_t i = CRNGT_BLOCK_SIZE; i < sizeof(entropy); in rand_get_seed()
196 if (CRYPTO_memcmp(entropy + i - CRNGT_BLOCK_SIZE, entropy + i, in rand_get_seed()
203 entropy + sizeof(entropy) - CRNGT_BLOCK_SIZE, in rand_get_seed()
206 OPENSSL_memcpy(seed, entropy, CTR_DRBG_ENTROPY_LEN); in rand_get_seed()
210 seed[j] ^= entropy[CTR_DRBG_ENTROPY_LEN * i + j]; in rand_get_seed()
Dctrdrbg.c31 const uint8_t entropy[CTR_DRBG_ENTROPY_LEN], in CTR_DRBG_init()
39 OPENSSL_memcpy(seed_material, entropy, CTR_DRBG_ENTROPY_LEN); in CTR_DRBG_init()
103 const uint8_t entropy[CTR_DRBG_ENTROPY_LEN], in CTR_DRBG_reseed()
114 OPENSSL_memcpy(entropy_copy, entropy, CTR_DRBG_ENTROPY_LEN); in CTR_DRBG_reseed()
119 entropy = entropy_copy; in CTR_DRBG_reseed()
122 if (!ctr_drbg_update(drbg, entropy, CTR_DRBG_ENTROPY_LEN)) { in CTR_DRBG_reseed()
/external/webp/src/dsp/
Dlossless_enc.c405 void VP8LBitEntropyInit(VP8LBitEntropy* const entropy) { in VP8LBitEntropyInit() argument
406 entropy->entropy = 0.; in VP8LBitEntropyInit()
407 entropy->sum = 0; in VP8LBitEntropyInit()
408 entropy->nonzeros = 0; in VP8LBitEntropyInit()
409 entropy->max_val = 0; in VP8LBitEntropyInit()
410 entropy->nonzero_code = VP8L_NON_TRIVIAL_SYM; in VP8LBitEntropyInit()
414 VP8LBitEntropy* const entropy) { in VP8LBitsEntropyUnrefined() argument
417 VP8LBitEntropyInit(entropy); in VP8LBitsEntropyUnrefined()
421 entropy->sum += array[i]; in VP8LBitsEntropyUnrefined()
422 entropy->nonzero_code = i; in VP8LBitsEntropyUnrefined()
[all …]
Dlossless_enc_mips32.c230 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() argument
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->sum); in GetCombinedEntropyUnrefined_MIPS32()
/external/autotest/server/site_tests/firmware_Fingerprint/
Dcontrol.add_entropy13 Fails if we can add entropy from RW or cannot add entropy from RO."
24 Attempts to add entropy while running RW firmware and verifies that it fails.
25 Adds entropy from RO firmware and verifies that rollback block ID increments by
26 one. Then adds entropy with reset (double write) and verifies block ID
/external/autotest/client/site_tests/platform_CryptohomeLECredentialManager/
Dcontrol15 low entropy credentials such as PINs and uses Cr50 to exchange the low
16 entropy credential for a high entropy credential while enforcing limits
17 on how often attempts can be made. The high entropy credential is needed
/external/autotest/server/site_tests/platform_CryptohomeLECredentialManagerServer/
Dcontrol15 low entropy credentials such as PINs and uses Cr50 to exchange the low
16 entropy credential for a high entropy credential while enforcing limits
17 on how often attempts can be made. The high entropy credential is needed
/external/libevent/
Darc4random.c261 unsigned char entropy[64]; in arc4_seed_proc_sys_kernel_random_uuid() local
271 memset(entropy, 0, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
276 entropy[nybbles/2] |= nyb; in arc4_seed_proc_sys_kernel_random_uuid()
278 entropy[nybbles/2] |= nyb<<4; in arc4_seed_proc_sys_kernel_random_uuid()
285 arc4_addrandom(entropy, nybbles/2); in arc4_seed_proc_sys_kernel_random_uuid()
288 evutil_memclear_(entropy, sizeof(entropy)); in arc4_seed_proc_sys_kernel_random_uuid()
/external/wpa_supplicant_8/src/crypto/
Drandom.c62 static unsigned int entropy = 0; variable
137 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { in random_add_randomness()
145 count, entropy); in random_add_randomness()
154 entropy++; in random_add_randomness()
166 (unsigned int) len, entropy); in random_get_bytes()
217 if (entropy < len) in random_get_bytes()
218 entropy = 0; in random_get_bytes()
220 entropy -= len; in random_get_bytes()
/external/tensorflow/tensorflow/python/ops/distributions/
Dtransformed_distribution.py544 entropy = self.distribution.entropy()
548 entropy *= math_ops.cast(math_ops.reduce_prod(self._override_event_shape),
549 dtype=entropy.dtype.base_dtype)
555 entropy = array_ops.reshape(entropy, new_shape)
560 entropy = array_ops.tile(entropy, multiples)
571 entropy -= math_ops.cast(ildj, entropy.dtype)
572 entropy.set_shape(self.batch_shape)
573 return entropy
/external/brotli/c/enc/
Dencode.c344 double entropy[4]; in ChooseContextMap() local
349 entropy[1] = ShannonEntropy(monogram_histo, 3, &dummy); in ChooseContextMap()
350 entropy[2] = (ShannonEntropy(two_prefix_histo, 3, &dummy) + in ChooseContextMap()
352 entropy[3] = 0; in ChooseContextMap()
354 entropy[3] += ShannonEntropy(bigram_histo + 3 * i, 3, &dummy); in ChooseContextMap()
359 entropy[0] = 1.0 / (double)total; in ChooseContextMap()
360 entropy[1] *= entropy[0]; in ChooseContextMap()
361 entropy[2] *= entropy[0]; in ChooseContextMap()
362 entropy[3] *= entropy[0]; in ChooseContextMap()
366 entropy[3] = entropy[1] * 10; in ChooseContextMap()
[all …]
/external/boringssl/src/fipstools/
Dcavp_ctr_drbg_test.cc47 std::vector<uint8_t> entropy, nonce, personalization_str, ai1, ai2; in TestCTRDRBG() local
49 !t->GetBytes(&entropy, "EntropyInput") || in TestCTRDRBG()
54 entropy.size() * 8 != strtoul(entropy_input_len.c_str(), nullptr, 0) || in TestCTRDRBG()
64 CTR_DRBG_init(&drbg, entropy.data(), in TestCTRDRBG()
/external/webp/src/enc/
Dhistogram_enc.c230 static WEBP_INLINE double BitsEntropyRefine(const VP8LBitEntropy* entropy) { in BitsEntropyRefine() argument
232 if (entropy->nonzeros < 5) { in BitsEntropyRefine()
233 if (entropy->nonzeros <= 1) { in BitsEntropyRefine()
239 if (entropy->nonzeros == 2) { in BitsEntropyRefine()
240 return 0.99 * entropy->sum + 0.01 * entropy->entropy; in BitsEntropyRefine()
246 if (entropy->nonzeros == 3) { in BitsEntropyRefine()
256 double min_limit = 2 * entropy->sum - entropy->max_val; in BitsEntropyRefine()
257 min_limit = mix * min_limit + (1.0 - mix) * entropy->entropy; in BitsEntropyRefine()
258 return (entropy->entropy < min_limit) ? min_limit : entropy->entropy; in BitsEntropyRefine()
263 VP8LBitEntropy entropy; in VP8LBitsEntropy() local
[all …]
/external/scapy/scapy/contrib/
Dpnio_rtc.py314 entropy = dict(entropies[comm]) # Convert tuples to key => value
320 locations[comm][i], entropy
326 def analyse_one_profisafe_location(location, entropy): argument
338 if j in entropy and entropy[j] >= 6:
428 entropy = 0
433 entropy -= ratio * math.log(ratio, 2)
435 return entropy
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dnormal_test.py296 entropy = normal.entropy()
298 self.evaluate(normal.batch_shape_tensor()), entropy.get_shape())
301 self.evaluate(entropy).shape)
302 self.assertAllEqual(normal.batch_shape, entropy.get_shape())
303 self.assertAllEqual(normal.batch_shape, self.evaluate(entropy).shape)
307 expected_entropy = stats.norm(mu_v, sigma_v).entropy()
308 self.assertAllClose(expected_entropy, self.evaluate(entropy))
319 entropy = normal.entropy()
320 np.testing.assert_allclose(expected_entropy, self.evaluate(entropy))
322 self.evaluate(normal.batch_shape_tensor()), entropy.get_shape())
[all …]
Dbernoulli_test.py54 def entropy(p): function
119 self.assertEqual(dist.probs.dtype, dist.entropy().dtype)
241 self.assertAllClose(self.evaluate(dist.entropy()), entropy(p))
248 self.evaluate(dist.entropy()),
249 [[entropy(0.1), entropy(0.7)], [entropy(0.2),
250 entropy(0.6)]])
/external/curl/lib/vauth/
Dntlm.c568 unsigned char entropy[8]; in Curl_auth_create_ntlm_type3_message() local
571 result = Curl_rand(data, entropy, 8); in Curl_auth_create_ntlm_type3_message()
585 result = Curl_ntlm_core_mk_lmv2_resp(ntlmv2hash, entropy, in Curl_auth_create_ntlm_type3_message()
591 result = Curl_ntlm_core_mk_ntlmv2_resp(ntlmv2hash, entropy, in Curl_auth_create_ntlm_type3_message()
607 unsigned char entropy[8]; in Curl_auth_create_ntlm_type3_message() local
610 result = Curl_rand(data, entropy, 8); in Curl_auth_create_ntlm_type3_message()
615 memcpy(lmresp, entropy, 8); in Curl_auth_create_ntlm_type3_message()
622 memcpy(tmp + 8, entropy, 8); in Curl_auth_create_ntlm_type3_message()

12345678910>>...13