Lines Matching defs:tfm
108 static int crypto_ccm_setauthsize(struct crypto_aead *tfm,
392 static int crypto_ccm_init_tfm(struct crypto_aead *tfm)
394 struct aead_instance *inst = aead_alg_instance(tfm);
396 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm);
414 align = crypto_aead_alignmask(tfm);
417 tfm,
428 static void crypto_ccm_exit_tfm(struct crypto_aead *tfm)
430 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(tfm);
667 static int crypto_rfc4309_init_tfm(struct crypto_aead *tfm)
669 struct aead_instance *inst = aead_alg_instance(tfm);
671 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(tfm);
684 tfm,
692 static void crypto_rfc4309_exit_tfm(struct crypto_aead *tfm)
694 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(tfm);
788 int bs = crypto_shash_digestsize(pdesc->tfm);
789 u8 *dg = (u8 *)ctx + crypto_shash_descsize(pdesc->tfm) - bs;
800 struct crypto_shash *parent = pdesc->tfm;
803 struct crypto_cipher *tfm = tctx->child;
816 crypto_cipher_encrypt_one(tfm, dg, dg);
826 struct crypto_shash *parent = pdesc->tfm;
829 struct crypto_cipher *tfm = tctx->child;
834 crypto_cipher_encrypt_one(tfm, dg, dg);
840 static int cbcmac_init_tfm(struct crypto_tfm *tfm)
843 struct crypto_instance *inst = (void *)tfm->__crt_alg;
845 struct cbcmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm);
856 static void cbcmac_exit_tfm(struct crypto_tfm *tfm)
858 struct cbcmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm);