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