Searched defs:entropy (Results 1 - 25 of 61) sorted by relevance

123

/external/tpm2/
H A DEntropy.c16 // This is the last 32-bits of hardware entropy produced. We have to check to see that two consecutive 32-
29 // This function is used to get available hardware entropy. In a hardware implementation of this function,
30 // there would be no call to the system to get entropy. If the caller does not ask for any entropy, then this is
35 // <0 hardware failure of the entropy generator, this is sticky
36 // >= 0 the returned amount of entropy (bytes)
40 unsigned char *entropy, // output buffer
51 // Only provide entropy 32 bits at a time to test the ability
60 memcpy(entropy, &rndNum, amount);
39 _plat__GetEntropy( unsigned char *entropy, uint32_t amount ) argument
H A DCpriRNG.c25 // 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/
H A Dfeature.h39 entropy[4], member in struct:_ChannelFeatures
H A Drandom.c178 *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,chao
172 *entropy, local
357 *entropy; local
[all...]
H A Dstatistic.h46 entropy; member in struct:_ChannelStatistics
/external/tlsdate/src/events/
H A Dkickoff_time_sync.c11 #include <polarssl/entropy.h>
27 static entropy_context entropy; variable
41 entropy_init(&entropy);
42 if (0 > ctr_drbg_init(&ctr_drbg, entropy_func, &entropy,
/external/boringssl/src/crypto/rand/
H A Drand.c30 * entropy which is accessed via |CRYPTO_sysrand|. (If the operating system
31 * entropy source fails, it's up to |CRYPTO_sysrand| to abort the process—we
38 * the hardware entropy in.
40 * (We assume that the OS entropy is safe from fork()ing and VM duplication.
124 * entropy is used directly. */
214 void RAND_add(const void *buf, int num, double entropy) {} argument
/external/libopus/celt/tests/
H A Dtest_unit_entropy.c57 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 Deap_pax_common.c22 * @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 Deap_pax_common.c22 * @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 Deap_pax_common.c22 * @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-trace/catapult/telemetry/third_party/web-page-replay/third_party/dns/
H A Dmessage.py28 import dns.entropy namespace
140 self.id = dns.entropy.random_16()
/external/curl/lib/vauth/
H A Dntlm.c544 unsigned int entropy[2]; local
547 entropy[0] = Curl_rand(data);
548 entropy[1] = Curl_rand(data);
561 (unsigned char *)&entropy[0],
568 (unsigned char *)&entropy[0],
584 unsigned int entropy[2]; local
587 entropy[0] = Curl_rand(data);
588 entropy[1] = Curl_rand(data);
591 memcpy(lmresp, entropy, 8);
596 /* Fill tmp with challenge(nonce?) + entropy */
[all...]
/external/curl/lib/vtls/
H A Daxtls.c682 unsigned char *entropy,
694 get_random((int)length, entropy);
681 Curl_axtls_random(struct Curl_easy *data, unsigned char *entropy, size_t length) argument
/external/libjpeg-turbo/
H A Djcarith.c10 * This file contains portable arithmetic entropy encoding routines for JPEG
23 /* Expanded entropy encoder object for arithmetic encoding. */
137 arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy;
223 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy;
323 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
337 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS);
339 entropy->last_dc_val[ci] = 0;
340 entropy->dc_context[ci] = 0;
344 MEMZERO(entropy
366 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
457 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
556 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
591 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
684 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
826 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
909 arith_entropy_ptr entropy; local
[all...]
H A Djdarith.c10 * This file contains portable arithmetic entropy decoding routines for JPEG
23 /* Expanded entropy decoder object for arithmetic decoding. */
110 register arith_entropy_ptr e = (arith_entropy_ptr) cinfo->entropy;
194 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
206 MEMZERO(entropy->dc_stats[compptr->dc_tbl_no], DC_STAT_BINS);
208 entropy->last_dc_val[ci] = 0;
209 entropy->dc_context[ci] = 0;
212 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS);
217 entropy
245 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
324 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
398 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
431 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
500 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
627 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
736 arith_entropy_ptr entropy; local
[all...]
H A Djdphuff.c10 * This file contains Huffman entropy decoding routines for progressive JPEG.
28 * Expanded entropy decoder object for progressive Huffman decoding.
96 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;
172 pdtbl = entropy->derived_tbls + tbl;
177 pdtbl = entropy
235 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
293 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
364 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
449 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
498 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
648 phuff_entropy_ptr entropy; local
[all...]
/external/opencv3/3rdparty/libjpeg/
H A Djcarith.c8 * 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
560 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
595 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
694 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
842 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
925 arith_entropy_ptr entropy; local
[all...]
H A Djdarith.c8 * 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;
211 MEMZERO(entropy->ac_stats[compptr->ac_tbl_no], AC_STAT_BINS);
216 entropy
244 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
323 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
403 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
436 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
511 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
643 arith_entropy_ptr entropy = (arith_entropy_ptr) cinfo->entropy; local
753 arith_entropy_ptr entropy; local
[all...]
/external/pdfium/third_party/libjpeg/
H A Dfpdfapi_jdhuff.c8 * 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
473 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local
522 huff_entropy_ptr entropy = (huff_entropy_ptr) cinfo->entropy; local
640 huff_entropy_ptr entropy; local
[all...]
H A Dfpdfapi_jdphuff.c8 * 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
230 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
288 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
359 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
444 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
493 phuff_entropy_ptr entropy = (phuff_entropy_ptr) cinfo->entropy; local
643 phuff_entropy_ptr entropy; local
[all...]
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Drandom.c8 * 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 Drandom.c8 * 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 Drandom.c8 * 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/ImageMagick/Magick++/lib/
H A DStatistic.cpp337 double Magick::ChannelStatistics::entropy() const function in class:Magick::ChannelStatistics
407 _entropy(channelStatistics_->entropy),

Completed in 373 milliseconds

123