Lines Matching refs:tfm
29 int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask);
30 int (*init_tfm)(struct crypto_tfm *tfm);
186 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm);
203 struct crypto_aead *tfm,
212 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) in crypto_tfm_ctx_aligned() argument
214 return PTR_ALIGN(crypto_tfm_ctx(tfm), in crypto_tfm_ctx_aligned()
215 crypto_tfm_alg_alignmask(tfm) + 1); in crypto_tfm_ctx_aligned()
219 struct crypto_tfm *tfm) in crypto_tfm_alg_instance() argument
221 return container_of(tfm->__crt_alg, struct crypto_instance, alg); in crypto_tfm_alg_instance()
230 struct crypto_ablkcipher *tfm) in crypto_ablkcipher_alg() argument
232 return &crypto_ablkcipher_tfm(tfm)->__crt_alg->cra_ablkcipher; in crypto_ablkcipher_alg()
235 static inline void *crypto_ablkcipher_ctx(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx() argument
237 return crypto_tfm_ctx(&tfm->base); in crypto_ablkcipher_ctx()
240 static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx_aligned() argument
242 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_ablkcipher_ctx_aligned()
254 static inline void *crypto_blkcipher_ctx(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx() argument
256 return crypto_tfm_ctx(&tfm->base); in crypto_blkcipher_ctx()
259 static inline void *crypto_blkcipher_ctx_aligned(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx_aligned() argument
261 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_blkcipher_ctx_aligned()
273 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg() argument
275 return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher; in crypto_cipher_alg()
286 static inline void *crypto_hash_ctx(struct crypto_hash *tfm) in crypto_hash_ctx() argument
288 return crypto_tfm_ctx(&tfm->base); in crypto_hash_ctx()
291 static inline void *crypto_hash_ctx_aligned(struct crypto_hash *tfm) in crypto_hash_ctx_aligned() argument
293 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_hash_ctx_aligned()
348 struct crypto_ablkcipher *tfm) in ablkcipher_tfm_in_queue() argument
350 return crypto_tfm_in_queue(queue, crypto_ablkcipher_tfm(tfm)); in ablkcipher_tfm_in_queue()