Searched refs:seed (Results 1 – 9 of 9) sorted by relevance
/crypto/ |
D | xxhash_generic.c | 13 u64 seed; member 25 if (keylen != sizeof(tctx->seed)) { in xxhash64_setkey() 29 tctx->seed = get_unaligned_le64(key); in xxhash64_setkey() 38 xxh64_reset(&dctx->xxhstate, tctx->seed); in xxhash64_init() 67 put_unaligned_le64(xxh64(data, length, tctx->seed), out); in xxhash64_digest()
|
D | ansi_cprng.c | 364 const u8 *seed, unsigned int slen) in cprng_reset() argument 367 const u8 *key = seed + DEFAULT_BLK_SZ; in cprng_reset() 376 reset_prng_context(prng, key, DEFAULT_PRNG_KSZ, seed, dt); in cprng_reset() 394 const u8 *seed, unsigned int slen) in fips_cprng_reset() argument 397 const u8 *key = seed + DEFAULT_BLK_SZ; in fips_cprng_reset() 406 if (!memcmp(seed, key, DEFAULT_PRNG_KSZ)) in fips_cprng_reset() 409 rc = cprng_reset(tfm, seed, slen); in fips_cprng_reset() 425 .seed = cprng_reset, 439 .seed = fips_cprng_reset,
|
D | rng.c | 31 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) in crypto_rng_reset() argument 38 if (!seed && slen) { in crypto_rng_reset() 46 seed = buf; in crypto_rng_reset() 49 err = crypto_rng_alg(tfm)->seed(tfm, seed, slen); in crypto_rng_reset()
|
D | drbg.c | 421 struct drbg_string *seed = NULL; in drbg_ctr_df() local 433 list_for_each_entry(seed, seedlist, list) in drbg_ctr_df() 434 inputlen += seed->len; in drbg_ctr_df() 530 static int drbg_ctr_update(struct drbg_state *drbg, struct list_head *seed, in drbg_ctr_update() argument 559 if (seed) { in drbg_ctr_update() 560 ret = drbg_ctr_df(drbg, df_data, drbg_statelen(drbg), seed); in drbg_ctr_update() 653 static int drbg_hmac_update(struct drbg_state *drbg, struct list_head *seed, in drbg_hmac_update() argument 674 if (seed) in drbg_hmac_update() 675 list_splice_tail(seed, &seedlist); in drbg_hmac_update() 697 if (!seed) in drbg_hmac_update() [all …]
|
D | jitterentropy-kcapi.c | 158 const u8 *seed, unsigned int slen) in jent_kcapi_reset() argument 165 .seed = jent_kcapi_reset,
|
D | algif_rng.c | 160 static int rng_setkey(void *private, const u8 *seed, unsigned int seedlen) in rng_setkey() argument 166 return crypto_rng_reset(private, seed, seedlen); in rng_setkey()
|
D | Makefile | 135 obj-$(CONFIG_CRYPTO_SEED) += seed.o
|
D | testmgr.c | 3179 u8 *seed; in test_cprng() local 3184 seed = kmalloc(seedsize, GFP_KERNEL); in test_cprng() 3185 if (!seed) { in test_cprng() 3194 memcpy(seed, template[i].v, template[i].vlen); in test_cprng() 3195 memcpy(seed + template[i].vlen, template[i].key, in test_cprng() 3197 memcpy(seed + template[i].vlen + template[i].klen, in test_cprng() 3200 err = crypto_rng_reset(tfm, seed, seedsize); in test_cprng() 3231 kfree(seed); in test_cprng()
|
D | Kconfig | 1448 <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp> 1787 to provide seed to another RNG. The RNG does not 1843 - generate/seed numbers for rng operations
|