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