Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/crypto/hisilicon/trng/
Dtrng.c118 u32 currsize = 0; in hisi_trng_generate() local
140 if (dlen - currsize >= SW_DRBG_BYTES) { in hisi_trng_generate()
141 memcpy(dstn + currsize, data, SW_DRBG_BYTES); in hisi_trng_generate()
142 currsize += SW_DRBG_BYTES; in hisi_trng_generate()
144 memcpy(dstn + currsize, data, dlen - currsize); in hisi_trng_generate()
145 currsize = dlen; in hisi_trng_generate()
149 } while (currsize < dlen); in hisi_trng_generate()
186 int currsize = 0; in hisi_trng_read() local
196 return currsize; in hisi_trng_read()
198 if (max - currsize >= HISI_TRNG_BYTES) { in hisi_trng_read()
[all …]
/linux-6.1.9/drivers/crypto/
Dqcom-rng.c46 unsigned int currsize = 0; in qcom_rng_read() local
62 if ((max - currsize) >= WORD_SZ) { in qcom_rng_read()
65 currsize += WORD_SZ; in qcom_rng_read()
68 memcpy(data, &val, max - currsize); in qcom_rng_read()
71 } while (currsize < max); in qcom_rng_read()