Lines Matching refs:tfm

27 	int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask);
28 int (*init_tfm)(struct crypto_tfm *tfm);
183 int crypto_tfm_in_queue(struct crypto_queue *queue, struct crypto_tfm *tfm);
200 struct crypto_aead *tfm,
209 static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm) in crypto_tfm_ctx_aligned() argument
211 return PTR_ALIGN(crypto_tfm_ctx(tfm), in crypto_tfm_ctx_aligned()
212 crypto_tfm_alg_alignmask(tfm) + 1); in crypto_tfm_ctx_aligned()
216 struct crypto_tfm *tfm) in crypto_tfm_alg_instance() argument
218 return container_of(tfm->__crt_alg, struct crypto_instance, alg); in crypto_tfm_alg_instance()
227 struct crypto_ablkcipher *tfm) in crypto_ablkcipher_alg() argument
229 return &crypto_ablkcipher_tfm(tfm)->__crt_alg->cra_ablkcipher; in crypto_ablkcipher_alg()
232 static inline void *crypto_ablkcipher_ctx(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx() argument
234 return crypto_tfm_ctx(&tfm->base); in crypto_ablkcipher_ctx()
237 static inline void *crypto_ablkcipher_ctx_aligned(struct crypto_ablkcipher *tfm) in crypto_ablkcipher_ctx_aligned() argument
239 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_ablkcipher_ctx_aligned()
242 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg() argument
244 return &crypto_aead_tfm(tfm)->__crt_alg->cra_aead; in crypto_aead_alg()
247 static inline void *crypto_aead_ctx(struct crypto_aead *tfm) in crypto_aead_ctx() argument
249 return crypto_tfm_ctx(&tfm->base); in crypto_aead_ctx()
267 static inline void *crypto_blkcipher_ctx(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx() argument
269 return crypto_tfm_ctx(&tfm->base); in crypto_blkcipher_ctx()
272 static inline void *crypto_blkcipher_ctx_aligned(struct crypto_blkcipher *tfm) in crypto_blkcipher_ctx_aligned() argument
274 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_blkcipher_ctx_aligned()
286 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg() argument
288 return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher; in crypto_cipher_alg()
299 static inline void *crypto_hash_ctx(struct crypto_hash *tfm) in crypto_hash_ctx() argument
301 return crypto_tfm_ctx(&tfm->base); in crypto_hash_ctx()
304 static inline void *crypto_hash_ctx_aligned(struct crypto_hash *tfm) in crypto_hash_ctx_aligned() argument
306 return crypto_tfm_ctx_aligned(&tfm->base); in crypto_hash_ctx_aligned()
361 struct crypto_ablkcipher *tfm) in ablkcipher_tfm_in_queue() argument
363 return crypto_tfm_in_queue(queue, crypto_ablkcipher_tfm(tfm)); in ablkcipher_tfm_in_queue()