Lines Matching refs:tfm

174 	struct crypto_tfm *tfm;
236 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key,
238 void (*cia_encrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
239 void (*cia_decrypt)(struct crypto_tfm *tfm, u8 *dst, const u8 *src);
254 int (*coa_compress)(struct crypto_tfm *tfm, const u8 *src,
256 int (*coa_decompress)(struct crypto_tfm *tfm, const u8 *src,
365 int (*cra_init)(struct crypto_tfm *tfm);
366 void (*cra_exit)(struct crypto_tfm *tfm);
429 void (*exit)(struct crypto_tfm *tfm);
445 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm);
447 static inline void crypto_free_tfm(struct crypto_tfm *tfm)
449 return crypto_destroy_tfm(tfm, tfm);
455 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm)
457 return tfm->__crt_alg->cra_name;
460 static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm)
462 return tfm->__crt_alg->cra_driver_name;
465 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm)
467 return tfm->__crt_alg->cra_blocksize;
470 static inline unsigned int crypto_tfm_alg_alignmask(struct crypto_tfm *tfm)
472 return tfm->__crt_alg->cra_alignmask;
475 static inline u32 crypto_tfm_get_flags(struct crypto_tfm *tfm)
477 return tfm->crt_flags;
480 static inline void crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags)
482 tfm->crt_flags |= flags;
485 static inline void crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags)
487 tfm->crt_flags &= ~flags;
492 struct crypto_tfm *tfm;
493 return __alignof__(tfm->__crt_ctx);
496 static inline struct crypto_comp *__crypto_comp_cast(struct crypto_tfm *tfm)
498 return (struct crypto_comp *)tfm;
511 static inline struct crypto_tfm *crypto_comp_tfm(struct crypto_comp *tfm)
513 return &tfm->base;
516 static inline void crypto_free_comp(struct crypto_comp *tfm)
518 crypto_free_tfm(crypto_comp_tfm(tfm));
530 static inline const char *crypto_comp_name(struct crypto_comp *tfm)
532 return crypto_tfm_alg_name(crypto_comp_tfm(tfm));
535 int crypto_comp_compress(struct crypto_comp *tfm,
539 int crypto_comp_decompress(struct crypto_comp *tfm,