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()
241 static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_aes_cmac_setkey() argument
244 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ccp_aes_cmac_setkey()
246 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); in ccp_aes_cmac_setkey()
263 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ccp_aes_cmac_setkey()
320 static int ccp_aes_cmac_cra_init(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_init() argument
322 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cmac_cra_init()
323 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_aes_cmac_cra_init()
343 static void ccp_aes_cmac_cra_exit(struct crypto_tfm *tfm) in ccp_aes_cmac_cra_exit() argument
345 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_aes_cmac_cra_exit()