Thread (5 messages) 5 messages, 2 authors, 2021-04-06

Re: [PATCH] crypto: hisilicon/hpre - rsa key should not be empty

flat view

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2021-04-02 10:22:36
Also in: lkml

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,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help