Lines Matching refs:crypto_rng
16 struct crypto_rng;
44 int (*generate)(struct crypto_rng *tfm,
47 int (*seed)(struct crypto_rng *tfm, const u8 *seed, unsigned int slen);
48 void (*set_ent)(struct crypto_rng *tfm, const u8 *data,
56 struct crypto_rng { struct
60 extern struct crypto_rng *crypto_default_rng; argument
92 struct crypto_rng *crypto_alloc_rng(const char *alg_name, u32 type, u32 mask);
94 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm()
112 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg()
123 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng()
142 static inline int crypto_rng_generate(struct crypto_rng *tfm, in crypto_rng_generate()
160 static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, in crypto_rng_get_bytes()
183 int crypto_rng_reset(struct crypto_rng *tfm, const u8 *seed,
198 static inline int crypto_rng_seedsize(struct crypto_rng *tfm) in crypto_rng_seedsize()