Searched refs:rand_data (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/crypto/ |
D | jitterentropy.c | 64 struct rand_data { struct 183 static void jent_apt_init(struct rand_data *ec, unsigned int osr) in jent_apt_init() 205 static void jent_apt_reset(struct rand_data *ec, unsigned int delta_masked) in jent_apt_reset() 219 static void jent_apt_insert(struct rand_data *ec, unsigned int delta_masked) in jent_apt_insert() 266 static void jent_rct_insert(struct rand_data *ec, int stuck) in jent_rct_insert() 322 static int jent_stuck(struct rand_data *ec, __u64 current_delta) in jent_stuck() 360 static unsigned int jent_health_failure(struct rand_data *ec) in jent_health_failure() 423 static int jent_condition_data(struct rand_data *ec, __u64 time, int stuck) in jent_condition_data() 466 static void jent_memaccess(struct rand_data *ec, __u64 loop_cnt) in jent_memaccess() 520 static int jent_measure_jitter(struct rand_data *ec, __u64 *ret_current_delta) in jent_measure_jitter() [all …]
|
D | jitterentropy.h | 13 struct rand_data; 15 void *hash_state, struct rand_data *p_ec); 16 extern int jent_read_entropy(struct rand_data *ec, unsigned char *data, 19 extern struct rand_data *jent_entropy_collector_alloc(unsigned int osr, 22 extern void jent_entropy_collector_free(struct rand_data *entropy_collector);
|
D | ansi_cprng.c | 41 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()
|
D | jitterentropy-kcapi.c | 195 struct rand_data *entropy_collector;
|
/linux-6.12.1/drivers/misc/ |
D | nsm.c | 294 u8 *rand_data = NULL; in parse_resp_get_random() local 308 rc = cbor_object_get_array(resp_ptr, resp_len, &rand_data); in parse_resp_get_random() 315 memcpy(out, rand_data, rc); in parse_resp_get_random()
|