Lines Matching refs:tfm
30 static inline struct crypto_rng *__crypto_rng_cast(struct crypto_tfm *tfm) in __crypto_rng_cast() argument
32 return (struct crypto_rng *)tfm; in __crypto_rng_cast()
65 static inline struct crypto_tfm *crypto_rng_tfm(struct crypto_rng *tfm) in crypto_rng_tfm() argument
67 return &tfm->base; in crypto_rng_tfm()
78 static inline struct rng_alg *crypto_rng_alg(struct crypto_rng *tfm) in crypto_rng_alg() argument
80 return &crypto_rng_tfm(tfm)->__crt_alg->cra_rng; in crypto_rng_alg()
83 static inline struct rng_tfm *crypto_rng_crt(struct crypto_rng *tfm) in crypto_rng_crt() argument
85 return &crypto_rng_tfm(tfm)->crt_rng; in crypto_rng_crt()
92 static inline void crypto_free_rng(struct crypto_rng *tfm) in crypto_free_rng() argument
94 crypto_free_tfm(crypto_rng_tfm(tfm)); in crypto_free_rng()
108 static inline int crypto_rng_get_bytes(struct crypto_rng *tfm, in crypto_rng_get_bytes() argument
111 return crypto_rng_crt(tfm)->rng_gen_random(tfm, rdata, dlen); in crypto_rng_get_bytes()
131 static inline int crypto_rng_reset(struct crypto_rng *tfm, in crypto_rng_reset() argument
134 return crypto_rng_crt(tfm)->rng_reset(tfm, seed, slen); in crypto_rng_reset()
149 static inline int crypto_rng_seedsize(struct crypto_rng *tfm) in crypto_rng_seedsize() argument
151 return crypto_rng_alg(tfm)->seedsize; in crypto_rng_seedsize()