Lines Matching defs:tfm
627 static int sahara_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
630 struct sahara_ctx *ctx = crypto_skcipher_ctx(tfm);
647 crypto_skcipher_set_flags(ctx->fallback, tfm->base.crt_flags &
726 static int sahara_aes_init_tfm(struct crypto_skcipher *tfm)
728 const char *name = crypto_tfm_alg_name(&tfm->base);
729 struct sahara_ctx *ctx = crypto_skcipher_ctx(tfm);
738 crypto_skcipher_set_reqsize(tfm, sizeof(struct sahara_aes_reqctx) +
744 static void sahara_aes_exit_tfm(struct crypto_skcipher *tfm)
746 struct sahara_ctx *ctx = crypto_skcipher_ctx(tfm);
891 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
897 block_size = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
1023 if (crypto_tfm_alg_type(async_req->tfm) ==
1074 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1079 switch (crypto_ahash_digestsize(tfm)) {
1139 static int sahara_sha_cra_init(struct crypto_tfm *tfm)
1141 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),