Lines Matching refs:tfm
107 unsigned long alignmask = crypto_shash_alignmask(pdesc->tfm); in crypto_cmac_digest_init()
109 int bs = crypto_shash_blocksize(pdesc->tfm); in crypto_cmac_digest_init()
121 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_update()
125 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_update() local
143 crypto_cipher_encrypt_one(tfm, prev, prev); in crypto_cmac_digest_update()
151 crypto_cipher_encrypt_one(tfm, prev, prev); in crypto_cmac_digest_update()
167 struct crypto_shash *parent = pdesc->tfm; in crypto_cmac_digest_final()
171 struct crypto_cipher *tfm = tctx->child; in crypto_cmac_digest_final() local
196 crypto_cipher_encrypt_one(tfm, out, prev); in crypto_cmac_digest_final()
201 static int cmac_init_tfm(struct crypto_shash *tfm) in cmac_init_tfm() argument
203 struct shash_instance *inst = shash_alg_instance(tfm); in cmac_init_tfm()
204 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cmac_init_tfm()
218 static int cmac_clone_tfm(struct crypto_shash *tfm, struct crypto_shash *otfm) in cmac_clone_tfm() argument
221 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cmac_clone_tfm()
233 static void cmac_exit_tfm(struct crypto_shash *tfm) in cmac_exit_tfm() argument
235 struct cmac_tfm_ctx *ctx = crypto_shash_ctx(tfm); in cmac_exit_tfm()