Lines Matching refs:tfm
351 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_ahash_hmac_resume() local
352 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_ahash_hmac_resume()
537 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_ahash_do_request() local
538 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_ahash_do_request()
561 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_ahash_prepare_request() local
562 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_ahash_prepare_request()
584 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_update() local
585 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_update()
612 static int aspeed_sham_shash_digest(struct crypto_shash *tfm, u32 flags, in aspeed_sham_shash_digest() argument
615 SHASH_DESC_ON_STACK(shash, tfm); in aspeed_sham_shash_digest()
617 shash->tfm = tfm; in aspeed_sham_shash_digest()
625 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_final() local
626 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_final()
639 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_finup() local
640 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_finup()
664 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in aspeed_sham_init() local
665 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_init()
670 crypto_tfm_alg_name(&tfm->base), in aspeed_sham_init()
671 crypto_ahash_digestsize(tfm)); in aspeed_sham_init()
676 switch (crypto_ahash_digestsize(tfm)) { in aspeed_sham_init()
726 crypto_ahash_digestsize(tfm)); in aspeed_sham_init()
751 static int aspeed_sham_setkey(struct crypto_ahash *tfm, const u8 *key, in aspeed_sham_setkey() argument
754 struct aspeed_sham_ctx *tctx = crypto_ahash_ctx(tfm); in aspeed_sham_setkey()
762 AHASH_DBG(hace_dev, "%s: keylen:%d\n", crypto_tfm_alg_name(&tfm->base), in aspeed_sham_setkey()
788 static int aspeed_sham_cra_init(struct crypto_tfm *tfm) in aspeed_sham_cra_init() argument
790 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in aspeed_sham_cra_init()
791 struct aspeed_sham_ctx *tctx = crypto_tfm_ctx(tfm); in aspeed_sham_cra_init()
798 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in aspeed_sham_cra_init()
819 static void aspeed_sham_cra_exit(struct crypto_tfm *tfm) in aspeed_sham_cra_exit() argument
821 struct aspeed_sham_ctx *tctx = crypto_tfm_ctx(tfm); in aspeed_sham_cra_exit()
824 AHASH_DBG(hace_dev, "%s\n", crypto_tfm_alg_name(tfm)); in aspeed_sham_cra_exit()