Lines Matching refs:tfm

254 	struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm);  in mxs_dcp_aes_block_crypt()
377 struct crypto_tfm *tfm = in mxs_dcp_block_fallback() local
390 ablkcipher_request_set_tfm(req, __crypto_ablkcipher_cast(tfm)); in mxs_dcp_block_fallback()
399 struct dcp_async_ctx *actx = crypto_tfm_ctx(arq->tfm); in mxs_dcp_aes_enqueue()
439 static int mxs_dcp_aes_setkey(struct crypto_ablkcipher *tfm, const u8 *key, in mxs_dcp_aes_setkey() argument
442 struct dcp_async_ctx *actx = crypto_ablkcipher_ctx(tfm); in mxs_dcp_aes_setkey()
458 tfm->base.crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in mxs_dcp_aes_setkey()
469 tfm->base.crt_flags & CRYPTO_TFM_REQ_MASK; in mxs_dcp_aes_setkey()
475 tfm->base.crt_flags &= ~CRYPTO_TFM_RES_MASK; in mxs_dcp_aes_setkey()
476 tfm->base.crt_flags |= in mxs_dcp_aes_setkey()
482 static int mxs_dcp_aes_fallback_init(struct crypto_tfm *tfm) in mxs_dcp_aes_fallback_init() argument
484 const char *name = crypto_tfm_alg_name(tfm); in mxs_dcp_aes_fallback_init()
486 struct dcp_async_ctx *actx = crypto_tfm_ctx(tfm); in mxs_dcp_aes_fallback_init()
494 tfm->crt_ablkcipher.reqsize = sizeof(struct dcp_aes_req_ctx); in mxs_dcp_aes_fallback_init()
498 static void mxs_dcp_aes_fallback_exit(struct crypto_tfm *tfm) in mxs_dcp_aes_fallback_exit() argument
500 struct dcp_async_ctx *actx = crypto_tfm_ctx(tfm); in mxs_dcp_aes_fallback_exit()
514 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in mxs_dcp_run_sha() local
515 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in mxs_dcp_run_sha()
517 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in mxs_dcp_run_sha()
564 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_req_to_buf() local
565 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in dcp_sha_req_to_buf()
567 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in dcp_sha_req_to_buf()
678 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_init() local
679 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in dcp_sha_init()
681 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in dcp_sha_init()
708 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in dcp_sha_update_fx() local
709 struct dcp_async_ctx *actx = crypto_ahash_ctx(tfm); in dcp_sha_update_fx()
767 static int dcp_sha_cra_init(struct crypto_tfm *tfm) in dcp_sha_cra_init() argument
769 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in dcp_sha_cra_init()
774 static void dcp_sha_cra_exit(struct crypto_tfm *tfm) in dcp_sha_cra_exit() argument