Home
last modified time | relevance | path

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

/linux-4.1.27/include/crypto/
Drng.h18 extern struct crypto_rng *crypto_default_rng;
30 static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm) in __crypto_rng_cast()
32 return (struct crypto_rng *)tfm; in __crypto_rng_cast()
55 static inline struct crypto_rng *crypto_alloc_rng(const char *alg_name, in crypto_alloc_rng()
65 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
78 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg()
83 static inline struct rng_tfm *crypto_rng_crt(struct crypto_rng *tfm) in crypto_rng_crt()
92 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng()
108 static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, in crypto_rng_get_bytes()
131 static inline int crypto_rng_reset(struct crypto_rng *tfm, in crypto_rng_reset()
[all …]
Ddrbg.h203 static inline int crypto_drbg_get_bytes_addtl(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl()
234 static inline int crypto_drbg_get_bytes_addtl_test(struct crypto_rng *drng, in crypto_drbg_get_bytes_addtl_test()
263 static inline int crypto_drbg_reset_test(struct crypto_rng *drng, in crypto_drbg_reset_test()
/linux-4.1.27/crypto/
Dkrng.c19 static int krng_get_random(struct crypto_rng *tfm, u8 *rdata, unsigned int dlen) in krng_get_random()
25 static int krng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in krng_reset()
Drng.c28 struct crypto_rng *crypto_default_rng;
32 static int rngapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in rngapi_reset()
113 struct crypto_rng *rng; in crypto_get_default_rng()
Dansi_cprng.c356 static int cprng_get_random(struct crypto_rng *tfm, u8 *rdata, in cprng_get_random()
370 static int cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in cprng_reset()
390 static int fips_cprng_get_random(struct crypto_rng *tfm, u8 *rdata, in fips_cprng_get_random()
398 static int fips_cprng_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in fips_cprng_reset()
Dalgif_rng.c55 struct crypto_rng *drng;
Ddrbg.c1745 static int drbg_kcapi_random(struct crypto_rng *tfm, u8 *rdata, in drbg_kcapi_random()
1771 static int drbg_kcapi_reset(struct crypto_rng *tfm, u8 *seed, unsigned int slen) in drbg_kcapi_reset()
Dtestmgr.c1441 static int test_cprng(struct crypto_rng *tfm, struct cprng_testvec *template, in test_cprng()
1706 struct crypto_rng *rng; in alg_test_cprng()
1728 struct crypto_rng *drng; in drbg_cavs_test()
/linux-4.1.27/include/crypto/internal/
Drng.h21 static inline void *crypto_rng_ctx(struct crypto_rng *tfm) in crypto_rng_ctx()
/linux-4.1.27/include/linux/
Dcrypto.h141 struct crypto_rng;
449 int (*rng_make_random)(struct crypto_rng *tfm, u8 *rdata,
451 int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen);
659 int (*rng_gen_random)(struct crypto_rng *tfm, u8 *rdata,
661 int (*rng_reset)(struct crypto_rng *tfm, u8 *seed, unsigned int slen);
717 struct crypto_rng { struct