From: Hui Tang <tanghui20@huawei.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: <davem@davemloft.net>, <linux-crypto@vger.kernel.org>,
<xuzaibo@huawei.com>, <wangzhou1@hisilicon.com>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/3] crypto: ecdh - fix 'ecdh_init'
Date: Fri, 21 May 2021 16:08:10 +0800 [thread overview]
Message-ID: <2a5bcd22-455d-6348-9a72-dc5a7ab49ca6@huawei.com> (raw)
In-Reply-To: <20210521074553.w6qtqv5nnbdbqycx@gondor.apana.org.au>
On 2021/5/21 15:45, Herbert Xu wrote:
> On Wed, May 12, 2021 at 02:40:00PM +0800, Hui Tang wrote:
>> NIST P192 is not unregistered if failed to register NIST P256,
>> actually it need to unregister the algorithms already registered.
>>
>> Signed-off-by: Hui Tang <tanghui20@huawei.com>
>> ---
>> crypto/ecdh.c | 11 ++++++++++-
>> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> Thanks for catching this. The variable ecdh_nist_p192_registered
> is bogus. You should just make it so that if p192 fails to
> register then the init function aborts. There would then be
> no need to check for the registered state in the exit function.
>
Okay, I will fix it in next version, and 'ecdsa_init' should
do the same thing too?
>
next prev parent reply other threads:[~2021-05-21 8:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-12 6:39 [PATCH 0/3] crypto: ecdh - register NIST P384 Hui Tang
2021-05-12 6:40 ` [PATCH 1/3] crypto: ecdh - fix 'ecdh_init' Hui Tang
2021-05-21 7:45 ` Herbert Xu
2021-05-21 8:08 ` Hui Tang [this message]
2021-05-21 8:13 ` Herbert Xu
2021-05-21 9:36 ` Stephan Mueller
2021-05-12 6:40 ` [PATCH 2/3] crypto: ecdh - register NIST P384 tfm Hui Tang
2021-05-12 6:40 ` [PATCH 3/3] crypto: ecdh - add test suite for NIST P384 Hui Tang
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=2a5bcd22-455d-6348-9a72-dc5a7ab49ca6@huawei.com \
--to=tanghui20@huawei.com \
--cc=davem@davemloft.net \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wangzhou1@hisilicon.com \
--cc=xuzaibo@huawei.com \
/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