Lines Matching refs:alg
28 struct crypto_alg alg; member
48 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) in crypto_cipher_ctxsize() argument
50 return alg->cra_ctxsize; in crypto_cipher_ctxsize()
53 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) in crypto_compress_ctxsize() argument
55 return alg->cra_ctxsize; in crypto_compress_ctxsize()
58 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
65 void crypto_larval_kill(struct crypto_alg *alg);
68 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
71 void crypto_shoot_alg(struct crypto_alg *alg);
72 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
74 void *crypto_create_tfm(struct crypto_alg *alg,
84 unsigned int crypto_alg_extsize(struct crypto_alg *alg);
89 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) in crypto_alg_get() argument
91 refcount_inc(&alg->cra_refcnt); in crypto_alg_get()
92 return alg; in crypto_alg_get()
95 static inline void crypto_alg_put(struct crypto_alg *alg) in crypto_alg_put() argument
97 if (refcount_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy) in crypto_alg_put()
98 alg->cra_destroy(alg); in crypto_alg_put()
111 static inline int crypto_is_larval(struct crypto_alg *alg) in crypto_is_larval() argument
113 return alg->cra_flags & CRYPTO_ALG_LARVAL; in crypto_is_larval()
116 static inline int crypto_is_dead(struct crypto_alg *alg) in crypto_is_dead() argument
118 return alg->cra_flags & CRYPTO_ALG_DEAD; in crypto_is_dead()
121 static inline int crypto_is_moribund(struct crypto_alg *alg) in crypto_is_moribund() argument
123 return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING); in crypto_is_moribund()