/external/tpm2/ |
CpriRNG.c | 25 // This function is called to initialize the random number generator. It collects entropy from the platform to 32 BYTE entropy[MAX_RNG_ENTROPY_SIZE]; local 34 // Initialize the entropy source 37 // Collect entropy until we have enough 42 returnedSize = _plat__GetEntropy(&entropy[entropySize], 45 // Got some entropy on the last call and did not get an error 48 // Seed OpenSSL with entropy 49 RAND_seed(entropy, entropySize); 84 // This function is called to add external entropy to the OpenSSL() random number generator. 89 BYTE *entropy [all...] |
/external/ImageMagick/MagickCore/ |
feature.h | 39 entropy[4], member in struct:_ChannelFeatures
|
random.c | 178 *entropy, 217 entropy=GenerateEntropicChaos(random_info); 218 if (entropy == (StringInfo *) NULL) 220 UpdateSignature(random_info->signature_info,entropy); 224 entropy=DestroyStringInfo(entropy); 365 *entropy; 377 entropy=AcquireStringInfo(0); 380 SetStringInfoDatum(chaos,(unsigned char *) &entropy); 381 ConcatenateStringInfo(entropy,chaos) 172 *entropy, local 357 *entropy; local [all...] |
/external/boringssl/src/fipstools/ |
cavp_ctr_drbg_test.cc | 47 std::vector<uint8_t> entropy, nonce, personalization_str, ai1, ai2; local 49 !t->GetBytes(&entropy, "EntropyInput") || 54 entropy.size() * 8 != strtoul(entropy_input_len.c_str(), nullptr, 0) || 64 CTR_DRBG_init(&drbg, entropy.data(),
|
/system/security/keystore/ |
keystore_main.cpp | 35 #include "entropy.h" 139 Entropy entropy; local 140 CHECK(entropy.open()) << "Failed to open entropy source."; 158 keystore::KeyStore keyStore(&entropy, kmDevices, minimalAllowedSecurityLevelForNewKeys);
|
/cts/tests/aslr/src/ |
AslrMallocTest.cpp | 37 /* minimum entropy for malloc return addresses */ 124 size_t entropy = static_cast<size_t>(0.5 + local 127 ALOGV("%zu bits of entropy for allocation size %zu (minimum %zu)", 128 entropy, size, minEntropyBits); 129 ALOGE_IF(entropy < minEntropyBits, 130 "insufficient entropy for malloc(%zu)", size); 131 ASSERT_TRUE(entropy >= minEntropyBits);
|
/cts/tests/tests/security/src/android/security/cts/ |
AslrTest.java | 81 double entropy = Math.log(addresses.size()) / Math.log(2); local 83 Log.i(TAG, String.format("%.1f", entropy) + 84 " bits of entropy for " + mappingName); 86 return (int) Math.round(entropy); 95 int entropy = calculateEntropyBits(mappingName); local 98 entropy + " bits, >= " + aslrMinEntropyBits + " required)", 99 entropy >= aslrMinEntropyBits);
|
/external/libopus/celt/tests/ |
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/tensorflow/tensorflow/python/kernel_tests/distributions/ |
bernoulli_test.py | 52 def entropy(p): function 120 self.assertEqual(dist.probs.dtype, dist.entropy().dtype) 228 self.assertAllClose(dist.entropy().eval(), entropy(p)) 234 self.assertAllClose(dist.entropy().eval(), [[entropy(0.1), entropy(0.7)], 235 [entropy(0.2), entropy(0.6)]])
|
kullback_leibler_test.py | 101 def entropy(self): member in class:KLTest._testIndirectRegistration.Sub1 106 def entropy(self): member in class:KLTest._testIndirectRegistration.Sub2 111 def entropy(self): member in class:KLTest._testIndirectRegistration.Sub11
|
/external/boringssl/src/crypto/fipsmodule/rand/ |
rand.c | 35 // entropy which is accessed via |CRYPTO_sysrand|. (If the operating system 36 // entropy source fails, it's up to |CRYPTO_sysrand| to abort the process?we 45 // (We assume that the OS entropy is safe from fork()ing and VM duplication. 189 uint8_t entropy[CTR_DRBG_ENTROPY_LEN * FIPS_OVERREAD]; local 191 if (!hwrand(entropy, sizeof(entropy))) { 192 CRYPTO_sysrand(entropy, sizeof(entropy)); 198 if (CRYPTO_memcmp(state->last_block, entropy, CRNGT_BLOCK_SIZE) == 0) { 203 for (size_t i = CRNGT_BLOCK_SIZE; i < sizeof(entropy); [all...] |
/external/brotli/c/enc/ |
metablock_inc.h | 20 entropy(A+B) < entropy(A) + entropy(B) + split_threshold_, 39 /* Entropy of the previous two block types. */ 105 double entropy = BitsEntropy(histograms[self->curr_histogram_ix_].data_, variable 118 diff[j] = combined_entropy[j] - entropy - last_entropy[j]; 130 last_entropy[0] = entropy;
|
metablock.c | 171 entropy(A+B) < entropy(A) + entropy(B) + split_threshold_, 190 /* Entropy of the previous two block types. */ 275 Decide over the split based on the total reduction of entropy across 277 double entropy[BROTLI_MAX_STATIC_CONTEXTS]; local 287 entropy[i] = BitsEntropy(histograms[curr_histo_ix].data_, 297 diff[j] += combined_entropy[jx] - entropy[i] - last_entropy[jx]; 311 last_entropy[i] = entropy[i];
|
/external/webp/src/dsp/ |
lossless.h | 174 typedef struct { // small struct to hold bit entropy results 175 double entropy; // entropy member in struct:__anon43733 182 void VP8LBitEntropyInit(VP8LBitEntropy* const entropy); 184 // Get the combined symbol bit entropy and Huffman cost stats for the 192 // Get the entropy for the distribution 'X'. 199 VP8LBitEntropy* const entropy);
|
/external/ImageMagick/Magick++/lib/ |
Statistic.cpp | 337 double Magick::ChannelStatistics::entropy() const function in class:Magick::ChannelStatistics 407 _entropy(channelStatistics_->entropy),
|
/external/curl/lib/vauth/ |
ntlm.c | 561 unsigned char entropy[8]; local 564 result = Curl_rand(data, entropy, 8); 578 result = Curl_ntlm_core_mk_lmv2_resp(ntlmv2hash, entropy, 584 result = Curl_ntlm_core_mk_ntlmv2_resp(ntlmv2hash, entropy, 600 unsigned char entropy[8]; local 603 result = Curl_rand(data, entropy, 8); 608 memcpy(lmresp, entropy, 8); 613 /* Fill tmp with challenge(nonce?) + entropy */ 615 memcpy(tmp + 8, entropy, 8);
|
/external/libevent/ |
arc4random.c | 71 /* Add platform entropy 32 bytes (256 bits) at a time. */ 178 * RANDOM_UUID sysctl to get entropy from the kernel. This can work 215 * tries to use the KERN_ARND syscall to get entropy from the kernel. 261 unsigned char entropy[64]; local 271 memset(entropy, 0, sizeof(entropy)); 276 entropy[nybbles/2] |= nyb; 278 entropy[nybbles/2] |= nyb<<4; 285 arc4_addrandom(entropy, nybbles/2); 288 evutil_memclear_(entropy, sizeof(entropy)) [all...] |
/external/libjpeg-turbo/ |
jcarith.c | 11 * This file contains portable arithmetic entropy encoding routines for JPEG 24 /* Expanded entropy encoder object for arithmetic encoding. */ 138 arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; 224 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; 324 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 338 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); 340 entropy->last_dc_val[ci] = 0; 341 entropy->dc_context[ci] = 0; 345 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS) 367 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 458 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 557 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 592 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 685 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 827 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 910 arith_entropy_ptr entropy; local [all...] |
jcphuff.c | 11 * This file contains Huffman entropy encoding routines for progressive JPEG. 25 /* Expanded entropy encoder object for progressive Huffman encoding. */ 111 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 116 entropy->cinfo = cinfo; 117 entropy->gather_statistics = gather_statistics; 126 entropy->pub.encode_mcu = encode_mcu_DC_first; 128 entropy->pub.encode_mcu = encode_mcu_AC_first; 131 entropy->pub.encode_mcu = encode_mcu_DC_refine; 133 entropy->pub.encode_mcu = encode_mcu_AC_refine 380 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 467 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 574 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 621 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 749 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 770 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 817 phuff_entropy_ptr entropy; local [all...] |
jdarith.c | 11 * This file contains portable arithmetic entropy decoding routines for JPEG 27 /* Expanded entropy decoder object for arithmetic decoding. */ 114 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy; 198 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 210 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS); 212 entropy->last_dc_val[ci] = 0; 213 entropy->dc_context[ci] = 0; 216 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS); 221 entropy->c = 0 249 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 328 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 402 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 435 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 504 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 631 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local 740 arith_entropy_ptr entropy; local [all...] |
jdhuff.c | 11 * This file contains Huffman entropy decoding routines. 29 * Expanded entropy decoder object for Huffman decoding. 93 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 112 pdtbl = (d_derived_tbl **)(entropy->dc_derived_tbls) + dctbl; 114 pdtbl = (d_derived_tbl **)(entropy->ac_derived_tbls) + actbl; 117 entropy->saved.last_dc_val[ci] = 0; 125 entropy->dc_cur_tbls[blkn] = entropy->dc_derived_tbls[compptr->dc_tbl_no]; 126 entropy->ac_cur_tbls[blkn] = entropy->ac_derived_tbls[compptr->ac_tbl_no] 523 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 557 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 654 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 758 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local 802 huff_entropy_ptr entropy; local [all...] |
jdphuff.c | 11 * This file contains Huffman entropy decoding routines for progressive JPEG. 29 * Expanded entropy decoder object for progressive Huffman decoding. 97 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 155 entropy->pub.decode_mcu = decode_mcu_DC_first; 157 entropy->pub.decode_mcu = decode_mcu_AC_first; 160 entropy->pub.decode_mcu = decode_mcu_DC_refine; 162 entropy->pub.decode_mcu = decode_mcu_AC_refine; 173 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl; 178 pdtbl = (d_derived_tbl **)(entropy->derived_tbls) + tbl 236 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 294 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 365 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 450 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 499 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local 649 phuff_entropy_ptr entropy; local [all...] |
/external/wpa_supplicant_8/src/crypto/ |
random.c | 8 * This random number generator is used to provide additional entropy to the 60 static unsigned int entropy = 0; variable 135 if (entropy > MIN_COLLECT_ENTROPY && (count & 0x3ff) != 0) { 137 * No need to add more entropy at this point, so save CPU and 142 wpa_printf(MSG_EXCESSIVE, "Add randomness: count=%u entropy=%u", 143 count, entropy); 152 entropy++; 163 wpa_printf(MSG_MSGDUMP, "Get randomness: len=%u entropy=%u", 164 (unsigned int) len, entropy); 171 /* Mix in additional entropy extracted from the internal pool * [all...] |
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/inc/ |
video_encoder_device.h | 120 struct venc_entropycfg entropy; member in class:venc_dev
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/inc/ |
video_encoder_device.h | 126 struct venc_entropycfg entropy; member in class:venc_dev
|