From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: jiajie.ho@starfivetech.com
Cc: davem@davemloft.net, devicetree@vger.kernel.org,
herbert@gondor.apana.org.au, kernel@esmil.dk,
krzysztof.kozlowski+dt@linaro.org, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
palmer@dabbelt.com, robh+dt@kernel.org
Subject: Re: [PATCH v6 4/4] crypto: starfive - Add hash and HMAC support
Date: Wed, 26 Apr 2023 10:09:50 +0200 [thread overview]
Message-ID: <67846b76-1ade-c253-e50b-1c0a0dd0a84a@wanadoo.fr> (raw)
In-Reply-To: <20230426065848.842221-5-jiajie.ho@starfivetech.com>
Le 26/04/2023 à 08:58, Jia Jie Ho a écrit :
> Adding hash/HMAC support for SHA-2 and SM3 to StarFive cryptographic
> module.
>
> Co-developed-by: Huan Feng <huan.feng-bONrM45KWFOXmMXjJBpWqg@public.gmane.org>
> Signed-off-by: Huan Feng <huan.feng-bONrM45KWFOXmMXjJBpWqg@public.gmane.org>
> Signed-off-by: Jia Jie Ho <jiajie.ho-bONrM45KWFOXmMXjJBpWqg@public.gmane.org>
> ---
> drivers/crypto/starfive/Kconfig | 4 +
> drivers/crypto/starfive/Makefile | 2 +-
> drivers/crypto/starfive/jh7110-cryp.c | 38 ++
> drivers/crypto/starfive/jh7110-cryp.h | 70 +-
> drivers/crypto/starfive/jh7110-hash.c | 896 ++++++++++++++++++++++++++
> 5 files changed, 1006 insertions(+), 4 deletions(-)
> create mode 100644 drivers/crypto/starfive/jh7110-hash.c
>
[...]
> +int starfive_hash_register_algs(void)
> +{
> + int ret = 0;
> +
> + ret = crypto_register_ahashes(algs_sha2_sm3, ARRAY_SIZE(algs_sha2_sm3));
> +
> + return ret;
Nit: return crypto_register_ahashes(algs_sha2_sm3,
ARRAY_SIZE(algs_sha2_sm3));
?
> +}
> +
> +void starfive_hash_unregister_algs(void)
> +{
> + crypto_unregister_ahashes(algs_sha2_sm3, ARRAY_SIZE(algs_sha2_sm3));
> +}
prev parent reply other threads:[~2023-04-26 8:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 6:58 [PATCH v6 0/4] crypto: starfive - Add drivers for crypto engine Jia Jie Ho
2023-04-26 6:58 ` [PATCH v6 1/4] dt-bindings: crypto: Add StarFive crypto module Jia Jie Ho
2023-04-26 6:58 ` [PATCH v6 2/4] crypto: starfive - Add crypto engine support Jia Jie Ho
2023-04-26 7:56 ` Christophe JAILLET
2023-04-27 5:06 ` Jia Jie Ho
2023-04-26 8:09 ` Christophe JAILLET
2023-04-26 6:58 ` [PATCH v6 3/4] riscv: dts: starfive: Add crypto and DMA node for VisionFive 2 Jia Jie Ho
2023-04-26 6:58 ` [PATCH v6 4/4] crypto: starfive - Add hash and HMAC support Jia Jie Ho
2023-04-26 8:09 ` Christophe JAILLET [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=67846b76-1ade-c253-e50b-1c0a0dd0a84a@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=jiajie.ho@starfivetech.com \
--cc=kernel@esmil.dk \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®