Home
last modified time | relevance | path

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

/Linux-v5.4/include/crypto/
Drng.h14 struct crypto_rng;
42 int (*generate)(struct crypto_rng *tfm,
45 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
46 void (*set_ent)(struct crypto_rng *tfm, const u8 *data,
54 struct crypto_rng { struct
58 extern struct crypto_rng *crypto_default_rng; argument
90 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask);
92 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
105 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg()
115 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng()
[all …]
Ddrbg.h135 struct crypto_rng *jent;
207 static inline int crypto_drbg_get_bytes_addtl(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl()
232 static inline int crypto_drbg_get_bytes_addtl_test(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl_test()
257 static inline int crypto_drbg_reset_test(struct crypto_rng *drng, in crypto_drbg_reset_test()
/Linux-v5.4/crypto/
Drng.c27 struct crypto_rng *crypto_default_rng;
31 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) in crypto_rng_reset()
107 .tfmsize = offsetof(struct crypto_rng, base),
110 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng()
118 struct crypto_rng *rng; in crypto_get_default_rng()
Dansi_cprng.c348 static int cprng_get_random(struct crypto_rng *tfm, in cprng_get_random()
363 static int cprng_reset(struct crypto_rng *tfm, in cprng_reset()
384 static int fips_cprng_get_random(struct crypto_rng *tfm, in fips_cprng_get_random()
393 static int fips_cprng_reset(struct crypto_rng *tfm, in fips_cprng_reset()
Djitterentropy-kcapi.c143 static int jent_kcapi_random(struct crypto_rng *tfm, in jent_kcapi_random()
157 static int jent_kcapi_reset(struct crypto_rng *tfm, in jent_kcapi_reset()
Dalgif_rng.c55 struct crypto_rng *drng;
Ddrbg.c1638 static void drbg_kcapi_set_entropy(struct crypto_rng *tfm, in drbg_kcapi_set_entropy()
1929 static int drbg_kcapi_random(struct crypto_rng *tfm, in drbg_kcapi_random()
1949 static int drbg_kcapi_seed(struct crypto_rng *tfm, in drbg_kcapi_seed()
Dtestmgr.c3173 static int test_cprng(struct crypto_rng *tfm, in test_cprng()
3350 struct crypto_rng *rng; in alg_test_cprng()
3372 struct crypto_rng *drng; in drbg_cavs_test()
/Linux-v5.4/include/crypto/internal/
Drng.h29 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) in crypto_rng_ctx()
34 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, in crypto_rng_set_entropy()
/Linux-v5.4/drivers/crypto/sunxi-ss/
Dsun4i-ss-prng.c3 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun4i_ss_prng_seed()
15 int sun4i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src, in sun4i_ss_prng_generate()
Dsun4i-ss.h213 int sun4i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src,
215 int sun4i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
/Linux-v5.4/drivers/crypto/
Dqcom-rng.c70 static int qcom_rng_generate(struct crypto_rng *tfm, in qcom_rng_generate()
92 static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed, in qcom_rng_seed()
Dexynos-rng.c194 static int exynos_rng_generate(struct crypto_rng *tfm, in exynos_rng_generate()
225 static int exynos_rng_seed(struct crypto_rng *tfm, const u8 *seed, in exynos_rng_seed()
/Linux-v5.4/Documentation/crypto/
Dapi-samples.rst161 struct crypto_rng *rng = NULL;
/Linux-v5.4/drivers/crypto/amcc/
Dcrypto4xx_core.c1167 static int crypto4xx_prng_generate(struct crypto_rng *tfm, in crypto4xx_prng_generate()
1186 static int crypto4xx_prng_seed(struct crypto_rng *tfm, const u8 *seed, in crypto4xx_prng_seed()