Lines Matching refs:tfm
197 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_setkey_aes() local
198 struct mv_ctx *ctx = crypto_tfm_ctx(tfm); in mv_setkey_aes()
256 struct mv_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_process_current_q()
325 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_process_hash_current()
403 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_hash_final_fallback()
408 shash->tfm = tfm_ctx->fallback; in mv_hash_final_fallback()
622 if (crypto_tfm_alg_type(async_req->tfm) != in queue_manag()
665 struct mv_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_dec_aes_ecb()
687 struct mv_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_dec_aes_cbc()
697 static int mv_cra_init(struct crypto_tfm *tfm) in mv_cra_init() argument
699 tfm->crt_ablkcipher.reqsize = sizeof(struct mv_req_ctx); in mv_cra_init()
724 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_hash_init()
756 const struct mv_tfm_hash_ctx *tfm_ctx = crypto_tfm_ctx(req->base.tfm); in mv_hash_digest()
773 static int mv_hash_setkey(struct crypto_ahash *tfm, const u8 * key, in mv_hash_setkey() argument
777 struct mv_tfm_hash_ctx *ctx = crypto_tfm_ctx(&tfm->base); in mv_hash_setkey()
800 shash->tfm = ctx->base_hash; in mv_hash_setkey()
838 static int mv_cra_hash_init(struct crypto_tfm *tfm, const char *base_hash_name, in mv_cra_hash_init() argument
841 const char *fallback_driver_name = crypto_tfm_alg_name(tfm); in mv_cra_hash_init()
842 struct mv_tfm_hash_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cra_hash_init()
876 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in mv_cra_hash_init()
886 static void mv_cra_hash_exit(struct crypto_tfm *tfm) in mv_cra_hash_exit() argument
888 struct mv_tfm_hash_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cra_hash_exit()
895 static int mv_cra_hash_sha1_init(struct crypto_tfm *tfm) in mv_cra_hash_sha1_init() argument
897 return mv_cra_hash_init(tfm, NULL, COP_SHA1, 0); in mv_cra_hash_sha1_init()
900 static int mv_cra_hash_hmac_sha1_init(struct crypto_tfm *tfm) in mv_cra_hash_hmac_sha1_init() argument
902 return mv_cra_hash_init(tfm, "sha1", COP_HMAC_SHA1, SHA1_BLOCK_SIZE); in mv_cra_hash_hmac_sha1_init()