[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <639630ef-f0c3-1ccb-983d-0cb9d2ac2952@huawei.com>
Date: Tue, 6 Apr 2021 08:51:56 +0800
From: yumeng <yumeng18@...wei.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
CC: <davem@...emloft.net>, <linux-crypto@...r.kernel.org>,
<xuzaibo@...wei.com>, <wangzhou1@...ilicon.com>,
<linux-kernel@...r.kernel.org>, <shenyang39@...wei.com>
Subject: Re: [PATCH] crypto: hisilicon/hpre - rsa key should not be empty
在 2021/4/2 18:22, Herbert Xu 写道:
> On Fri, Apr 02, 2021 at 06:16:16PM +0800, yumeng wrote:
>>
>> I think it is not a real bug, and soft fallback setkey can always catch the
>> error.
>> But our original intention was to make it don't go to 'xxx_set_pub_key'
>> when the key is null, and it can return an error earlier.
>> But maybe it is not good.
>
> It might make sense to check them twice if you were touching them
> directly, e.g., poking inside the key. However, it appears that
> your driver simply palms off the key to rsa_helper.c which should
> check the key/keylen too so I think there is no need for this patch
> for now.
>
> Thanks,
>
OK, thank you.
Powered by blists - more mailing lists