Home
last modified time | relevance | path

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

/linux-4.4.14/include/crypto/
Drng.h19 struct crypto_rng;
47 int (*generate)(struct crypto_rng *tfm,
50 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
51 void (*set_ent)(struct crypto_rng *tfm, const u8 *data,
59 struct crypto_rng { struct
63 extern struct crypto_rng *crypto_default_rng; argument
95 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask);
97 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
110 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg()
120 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng()
[all …]
Ddrbg.h125 struct crypto_rng *jent;
197 static inline int crypto_drbg_get_bytes_addtl(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl()
222 static inline int crypto_drbg_get_bytes_addtl_test(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl_test()
247 static inline int crypto_drbg_reset_test(struct crypto_rng *drng, in crypto_drbg_reset_test()
/linux-4.4.14/crypto/
Drng.c31 struct crypto_rng *crypto_default_rng;
35 static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm) in __crypto_rng_cast()
37 return container_of(tfm, struct crypto_rng, base); in __crypto_rng_cast()
40 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed, unsigned int slen) in crypto_rng_reset()
115 .tfmsize = offsetof(struct crypto_rng, base),
118 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask) in crypto_alloc_rng()
126 struct crypto_rng *rng; in crypto_get_default_rng()
Dansi_cprng.c354 static int cprng_get_random(struct crypto_rng *tfm, in cprng_get_random()
369 static int cprng_reset(struct crypto_rng *tfm, in cprng_reset()
390 static int fips_cprng_get_random(struct crypto_rng *tfm, in fips_cprng_get_random()
399 static int fips_cprng_reset(struct crypto_rng *tfm, in fips_cprng_reset()
Djitterentropy-kcapi.c145 static int jent_kcapi_random(struct crypto_rng *tfm, in jent_kcapi_random()
159 static int jent_kcapi_reset(struct crypto_rng *tfm, in jent_kcapi_reset()
Dalgif_rng.c55 struct crypto_rng *drng;
Ddrbg.c1611 static void drbg_kcapi_set_entropy(struct crypto_rng *tfm, in drbg_kcapi_set_entropy()
1790 static int drbg_kcapi_random(struct crypto_rng *tfm, in drbg_kcapi_random()
1810 static int drbg_kcapi_seed(struct crypto_rng *tfm, in drbg_kcapi_seed()
Dtestmgr.c1473 static int test_cprng(struct crypto_rng *tfm, struct cprng_testvec *template, in test_cprng()
1738 struct crypto_rng *rng; in alg_test_cprng()
1760 struct crypto_rng *drng; in drbg_cavs_test()
/linux-4.4.14/include/crypto/internal/
Drng.h34 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) in crypto_rng_ctx()
39 static inline void crypto_rng_set_entropy(struct crypto_rng *tfm, in crypto_rng_set_entropy()