Lines Matching refs:tfm
30 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_aes_cmac_complete() local
32 unsigned int digest_size = crypto_ahash_digestsize(tfm); in ccp_aes_cmac_complete()
61 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_cmac_update() local
62 struct ccp_ctx *ctx = crypto_ahash_ctx(tfm); in ccp_do_cmac_update()
66 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ccp_do_cmac_update()
259 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey() argument
262 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ccp_aes_cmac_setkey()
264 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); in ccp_aes_cmac_setkey()
281 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ccp_aes_cmac_setkey()
338 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_init() argument
340 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cmac_cra_init()
341 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init()
361 static void ccp_aes_cmac_cra_exit(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_exit() argument
363 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cmac_cra_exit()