Home
last modified time | relevance | path

Searched refs:mcryptd_tfm (Results 1 – 3 of 3) sorted by relevance

/arch/x86/crypto/sha256-mb/
Dsha256_mb.c77 struct mcryptd_ahash *mcryptd_tfm; member
708 struct mcryptd_ahash *mcryptd_tfm; in sha256_mb_async_init_tfm() local
712 mcryptd_tfm = mcryptd_alloc_ahash("__intel_sha256-mb", in sha256_mb_async_init_tfm()
715 if (IS_ERR(mcryptd_tfm)) in sha256_mb_async_init_tfm()
716 return PTR_ERR(mcryptd_tfm); in sha256_mb_async_init_tfm()
717 mctx = crypto_ahash_ctx(&mcryptd_tfm->base); in sha256_mb_async_init_tfm()
719 ctx->mcryptd_tfm = mcryptd_tfm; in sha256_mb_async_init_tfm()
722 crypto_ahash_reqsize(&mcryptd_tfm->base)); in sha256_mb_async_init_tfm()
731 mcryptd_free_ahash(ctx->mcryptd_tfm); in sha256_mb_async_exit_tfm()
747 mcryptd_free_ahash(ctx->mcryptd_tfm); in sha256_mb_areq_exit_tfm()
[all …]
/arch/x86/crypto/sha1-mb/
Dsha1_mb.c77 struct mcryptd_ahash *mcryptd_tfm; member
710 struct mcryptd_ahash *mcryptd_tfm; in sha1_mb_async_init_tfm() local
714 mcryptd_tfm = mcryptd_alloc_ahash("__intel_sha1-mb", in sha1_mb_async_init_tfm()
717 if (IS_ERR(mcryptd_tfm)) in sha1_mb_async_init_tfm()
718 return PTR_ERR(mcryptd_tfm); in sha1_mb_async_init_tfm()
719 mctx = crypto_ahash_ctx(&mcryptd_tfm->base); in sha1_mb_async_init_tfm()
721 ctx->mcryptd_tfm = mcryptd_tfm; in sha1_mb_async_init_tfm()
724 crypto_ahash_reqsize(&mcryptd_tfm->base)); in sha1_mb_async_init_tfm()
733 mcryptd_free_ahash(ctx->mcryptd_tfm); in sha1_mb_async_exit_tfm()
749 mcryptd_free_ahash(ctx->mcryptd_tfm); in sha1_mb_areq_exit_tfm()
[all …]
/arch/x86/crypto/sha512-mb/
Dsha512_mb.c77 struct mcryptd_ahash *mcryptd_tfm; member
744 struct mcryptd_ahash *mcryptd_tfm; in sha512_mb_async_init_tfm() local
748 mcryptd_tfm = mcryptd_alloc_ahash("__intel_sha512-mb", in sha512_mb_async_init_tfm()
751 if (IS_ERR(mcryptd_tfm)) in sha512_mb_async_init_tfm()
752 return PTR_ERR(mcryptd_tfm); in sha512_mb_async_init_tfm()
753 mctx = crypto_ahash_ctx(&mcryptd_tfm->base); in sha512_mb_async_init_tfm()
755 ctx->mcryptd_tfm = mcryptd_tfm; in sha512_mb_async_init_tfm()
758 crypto_ahash_reqsize(&mcryptd_tfm->base)); in sha512_mb_async_init_tfm()
767 mcryptd_free_ahash(ctx->mcryptd_tfm); in sha512_mb_async_exit_tfm()
783 mcryptd_free_ahash(ctx->mcryptd_tfm); in sha512_mb_areq_exit_tfm()
[all …]