Lines Matching defs:tfm
76 * @xts_key_fallback: true if fallback tfm needs to be used due
78 * @fallback: xts fallback tfm
137 switch (crypto_tfm_alg_type(areq->tfm)) {
1604 static int caam_cra_init_skcipher(struct crypto_skcipher *tfm)
1606 struct skcipher_alg *alg = crypto_skcipher_alg(tfm);
1609 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
1614 const char *tfm_name = crypto_tfm_alg_name(&tfm->base);
1628 tfm, sizeof(struct caam_request) +
1631 crypto_skcipher_set_reqsize_dma(tfm,
1642 static int caam_cra_init_aead(struct crypto_aead *tfm)
1644 struct aead_alg *alg = crypto_aead_alg(tfm);
1648 crypto_aead_set_reqsize_dma(tfm, sizeof(struct caam_request));
1649 return caam_cra_init(crypto_aead_ctx_dma(tfm), &caam_alg->caam,
1660 static void caam_cra_exit(struct crypto_skcipher *tfm)
1662 struct caam_ctx *ctx = crypto_skcipher_ctx_dma(tfm);
1669 static void caam_cra_exit_aead(struct crypto_aead *tfm)
1671 caam_exit_common(crypto_aead_ctx_dma(tfm));
4551 static int caam_hash_cra_init(struct crypto_tfm *tfm)
4553 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm);
4554 struct crypto_alg *base = tfm->__crt_alg;
4561 struct caam_hash_ctx *ctx = crypto_tfm_ctx_dma(tfm);
4617 static void caam_hash_cra_exit(struct crypto_tfm *tfm)
4619 struct caam_hash_ctx *ctx = crypto_tfm_ctx_dma(tfm);