Lines Matching refs:tfm
34 int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask);
35 int (*init_tfm)(struct crypto_tfm *tfm);
247 struct crypto_aead *tfm,
256 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) in crypto_tfm_ctx_aligned() argument
258 return PTR_ALIGN(crypto_tfm_ctx(tfm), in crypto_tfm_ctx_aligned()
259 crypto_tfm_alg_alignmask(tfm) + 1); in crypto_tfm_ctx_aligned()
263 struct crypto_tfm *tfm) in crypto_tfm_alg_instance() argument
265 return container_of(tfm->__crt_alg, struct crypto_instance, alg); in crypto_tfm_alg_instance()
274 struct crypto_ablkcipher *tfm) in crypto_ablkcipher_alg() argument
276 return &crypto_ablkcipher_tfm(tfm)->__crt_alg->cra_ablkcipher; in crypto_ablkcipher_alg()
279 static inline void *crypto_ablkcipher_ctx(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx() argument
281 return crypto_tfm_ctx(&tfm->base); in crypto_ablkcipher_ctx()
284 static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx_aligned() argument
286 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_ablkcipher_ctx_aligned()
298 static inline void *crypto_blkcipher_ctx(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx() argument
300 return crypto_tfm_ctx(&tfm->base); in crypto_blkcipher_ctx()
303 static inline void *crypto_blkcipher_ctx_aligned(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx_aligned() argument
305 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_blkcipher_ctx_aligned()
317 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg() argument
319 return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher; in crypto_cipher_alg()