Home
last modified time | relevance | path

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

/Linux-v4.19/arch/s390/crypto/
Dprng.c104 static struct prng_data_s *prng_data; variable
170 cpacf_kmc(CPACF_KMC_PRNG, prng_data->prngws.parm_block, in prng_tdes_add_entropy()
173 memcpy(prng_data->prngws.parm_block, entropy, sizeof(entropy)); in prng_tdes_add_entropy()
189 *((__u64 *)prng_data->prngws.parm_block) ^= *((__u64 *)(buf+i)); in prng_tdes_seed()
195 prng_data->prngws.reseed_counter = 0; in prng_tdes_seed()
209 prng_data = kzalloc(datalen, GFP_KERNEL); in prng_tdes_instantiate()
210 if (!prng_data) { in prng_tdes_instantiate()
214 mutex_init(&prng_data->mutex); in prng_tdes_instantiate()
215 prng_data->buf = ((u8 *)prng_data) + sizeof(struct prng_data_s); in prng_tdes_instantiate()
216 memcpy(prng_data->prngws.parm_block, initial_parm_block, 32); in prng_tdes_instantiate()
[all …]