Home
last modified time | relevance | path

Searched refs:rand_data (Results 1 – 4 of 4) sorted by relevance

/linux/crypto/
A Djitterentropy.c63 struct rand_data { struct
191 static void jent_rct_insert(struct rand_data *ec, int stuck) in jent_rct_insert()
235 static int jent_rct_failure(struct rand_data *ec) in jent_rct_failure()
264 static int jent_stuck(struct rand_data *ec, __u64 current_delta) in jent_stuck()
300 static int jent_health_failure(struct rand_data *ec) in jent_health_failure()
325 static __u64 jent_loop_shuffle(struct rand_data *ec, in jent_loop_shuffle()
516 static int jent_measure_jitter(struct rand_data *ec) in jent_measure_jitter()
548 static void jent_gen_entropy(struct rand_data *ec) in jent_gen_entropy()
660 struct rand_data *entropy_collector; in jent_entropy_collector_alloc()
662 entropy_collector = jent_zalloc(sizeof(struct rand_data)); in jent_entropy_collector_alloc()
[all …]
A Djitterentropy.h10 struct rand_data;
12 extern int jent_read_entropy(struct rand_data *ec, unsigned char *data,
15 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr,
17 extern void jent_entropy_collector_free(struct rand_data *entropy_collector);
A Dansi_cprng.c41 unsigned char rand_data[DEFAULT_BLK_SZ]; member
119 output = ctx->rand_data; in _get_more_prng_bytes()
126 if (!memcmp(ctx->rand_data, ctx->last_rand_data, in _get_more_prng_bytes()
140 memcpy(ctx->last_rand_data, ctx->rand_data, in _get_more_prng_bytes()
147 xor_vectors(ctx->rand_data, ctx->I, tmp, in _get_more_prng_bytes()
175 hexdump("New Random Data: ", ctx->rand_data, DEFAULT_BLK_SZ); in _get_more_prng_bytes()
231 *ptr = ctx->rand_data[ctx->rand_data_valid]; in get_prng_bytes()
253 memcpy(ptr, ctx->rand_data, DEFAULT_BLK_SZ); in get_prng_bytes()
301 memset(ctx->rand_data, 0, DEFAULT_BLK_SZ); in reset_prng_context()
A Djitterentropy-kcapi.c110 struct rand_data *entropy_collector;

Completed in 7 milliseconds