Lines Matching defs:alg
43 struct crypto_alg alg;
63 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg)
65 return alg->cra_ctxsize;
68 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg)
70 return alg->cra_ctxsize;
73 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
84 void crypto_larval_kill(struct crypto_alg *alg);
89 void crypto_shoot_alg(struct crypto_alg *alg);
90 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
92 void *crypto_create_tfm(struct crypto_alg *alg,
104 static inline void crypto_alg_put(struct crypto_alg *alg)
106 if (atomic_dec_and_test(&alg->cra_refcnt) && alg->cra_destroy)
107 alg->cra_destroy(alg);
120 static inline int crypto_is_larval(struct crypto_alg *alg)
122 return alg->cra_flags & CRYPTO_ALG_LARVAL;
125 static inline int crypto_is_dead(struct crypto_alg *alg)
127 return alg->cra_flags & CRYPTO_ALG_DEAD;
130 static inline int crypto_is_moribund(struct crypto_alg *alg)
132 return alg->cra_flags & (CRYPTO_ALG_DEAD | CRYPTO_ALG_DYING);