Lines Matching refs:tfm

179 	struct crypto_tfm *tfm;  member
242 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
244 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
245 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
349 int (*cra_init)(struct crypto_tfm *tfm);
350 void (*cra_exit)(struct crypto_tfm *tfm);
413 void (*exit)(struct crypto_tfm *tfm);
425 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm);
427 static inline void crypto_free_tfm(struct crypto_tfm *tfm) in crypto_free_tfm() argument
429 return crypto_destroy_tfm(tfm, tfm); in crypto_free_tfm()
435 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) in crypto_tfm_alg_name() argument
437 return tfm->__crt_alg->cra_name; in crypto_tfm_alg_name()
440 static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) in crypto_tfm_alg_driver_name() argument
442 return tfm->__crt_alg->cra_driver_name; in crypto_tfm_alg_driver_name()
445 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) in crypto_tfm_alg_blocksize() argument
447 return tfm->__crt_alg->cra_blocksize; in crypto_tfm_alg_blocksize()
450 static inline unsigned int crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) in crypto_tfm_alg_alignmask() argument
452 return tfm->__crt_alg->cra_alignmask; in crypto_tfm_alg_alignmask()
455 static inline u32 crypto_tfm_get_flags(struct crypto_tfm *tfm) in crypto_tfm_get_flags() argument
457 return tfm->crt_flags; in crypto_tfm_get_flags()
460 static inline void crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) in crypto_tfm_set_flags() argument
462 tfm->crt_flags |= flags; in crypto_tfm_set_flags()
465 static inline void crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags) in crypto_tfm_clear_flags() argument
467 tfm->crt_flags &= ~flags; in crypto_tfm_clear_flags()
472 struct crypto_tfm *tfm; in crypto_tfm_ctx_alignment() local
473 return __alignof__(tfm->__crt_ctx); in crypto_tfm_ctx_alignment()
489 static inline bool crypto_tfm_is_async(struct crypto_tfm *tfm) in crypto_tfm_is_async() argument
491 return tfm->__crt_alg->cra_flags & CRYPTO_ALG_ASYNC; in crypto_tfm_is_async()