Lines Matching +full:0 +full:xcd00
50 * version 1.1.0 provided at http://www.chronox.de/jent.html
60 #define NULL ((void *) 0)
92 #define JENT_DISABLE_STIR (1<<0) /* Disable stirring the entropy pool */
136 __u64 time = 0; in jent_loop_shuffle()
137 __u64 shuffle = 0; in jent_loop_shuffle()
138 unsigned int i = 0; in jent_loop_shuffle()
152 for (i = 0; (DATA_SIZE_BITS / bits) > i; i++) { in jent_loop_shuffle()
174 * is 0xabcd
175 * 1st loop, 1st shift generates 0xd000
176 * 1st loop, 2nd shift generates 0x000d
177 * 2nd loop, 1st shift generates 0xcd00
178 * 2nd loop, 2nd shift generates 0x000c
179 * 3rd loop, 1st shift generates 0xbcd0
180 * 3rd loop, 2nd shift generates 0x000b
181 * 4th loop, 1st shift generates 0xabcd
182 * 4th loop, 2nd shift generates 0x000a
194 * @loop_cnt if a value not equal to 0 is set, use the given value as number of
206 __u64 j = 0; in jent_fold_time()
207 __u64 new = 0; in jent_fold_time()
209 #define MIN_FOLD_LOOP_BIT 0 in jent_fold_time()
219 for (j = 0; j < fold_loop_cnt; j++) { in jent_fold_time()
220 new = 0; in jent_fold_time()
254 * @loop_cnt if a value not equal to 0 is set, use the given value as number of
262 unsigned int wrap = 0; in jent_memaccess()
263 __u64 i = 0; in jent_memaccess()
265 #define MIN_ACC_LOOP_BIT 0 in jent_memaccess()
270 return 0; in jent_memaccess()
280 for (i = 0; i < (ec->memaccessloops + acc_loop_cnt); i++) { in jent_memaccess()
287 *tmpval = (*tmpval + 1) & 0xff; in jent_memaccess()
316 * 0 jitter measurement not stuck (good bit)
348 __u64 time = 0; in jent_measure_jitter()
349 __u64 data = 0; in jent_measure_jitter()
350 __u64 current_delta = 0; in jent_measure_jitter()
353 jent_memaccess(ec, 0); in jent_measure_jitter()
364 jent_fold_time(ec, current_delta, &data, 0); in jent_measure_jitter()
400 return 0; in jent_unbiased_bit()
442 unsigned int i = 0; in jent_stir_pool()
451 constant.u32[1] = 0x67452301; in jent_stir_pool()
452 constant.u32[0] = 0xefcdab89; in jent_stir_pool()
453 mixer.u32[1] = 0x98badcfe; in jent_stir_pool()
454 mixer.u32[0] = 0x10325476; in jent_stir_pool()
456 for (i = 0; i < DATA_SIZE_BITS; i++) { in jent_stir_pool()
477 unsigned int k = 0; in jent_gen_entropy()
483 __u64 data = 0; in jent_gen_entropy()
503 ec->stuck = 0; in jent_gen_entropy()
513 * due to counting bits from 0 to 63). As the current in jent_gen_entropy()
542 * 0 if FIPS test passed
543 * < 0 if FIPS test failed
579 * @return 0 when request is fulfilled or an error
592 while (0 < len) { in jent_read_entropy()
607 return 0; in jent_read_entropy()
638 if (0 == osr) in jent_entropy_collector_alloc()
644 entropy_collector->stir = 0; in jent_entropy_collector_alloc()
665 __u64 delta_sum = 0; in jent_entropy_init()
666 __u64 old_delta = 0; in jent_entropy_init()
667 int time_backwards = 0; in jent_entropy_init()
668 int count_var = 0; in jent_entropy_init()
669 int count_mod = 0; in jent_entropy_init()
695 for (i = 0; (TESTLOOPCOUNT + CLEARCACHE) > i; i++) { in jent_entropy_init()
696 __u64 time = 0; in jent_entropy_init()
697 __u64 time2 = 0; in jent_entropy_init()
698 __u64 folded = 0; in jent_entropy_init()
699 __u64 delta = 0; in jent_entropy_init()
700 unsigned int lowdelta = 0; in jent_entropy_init()
786 return 0; in jent_entropy_init()