Lines Matching refs:tfm
110 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_cmac_digest_init()
112 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init()
124 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
128 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update() local
146 crypto_cipher_encrypt_one(tfm, prev, prev); in crypto_cmac_digest_update()
154 crypto_cipher_encrypt_one(tfm, prev, prev); in crypto_cmac_digest_update()
170 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
174 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final() local
198 crypto_cipher_encrypt_one(tfm, out, prev); in crypto_cmac_digest_final()
203 static int cmac_init_tfm(struct crypto_tfm *tfm) in cmac_init_tfm() argument
206 struct crypto_instance *inst = (void *)tfm->__crt_alg; in cmac_init_tfm()
208 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_init_tfm()
219 static void cmac_exit_tfm(struct crypto_tfm *tfm) in cmac_exit_tfm() argument
221 struct cmac_tfm_ctx *ctx = crypto_tfm_ctx(tfm); in cmac_exit_tfm()