Re: [PATCH] crypto: hisilicon/hpre - ensure private key less than n

From: Herbert Xu
Date: Fri Jul 14 2023 - 05:01:16 EST


On Fri, Jul 07, 2023 at 09:18:19PM +0800, Weili Qian wrote:
> The private key of the curve key size generated by stdrng, which maybe
> not less than n. Therefore, the private key with the curve key size
> minus 1 is generated to ensure that the private key is less than n.
>
> Signed-off-by: Weili Qian <qianweili@xxxxxxxxxx>
> ---
> drivers/crypto/hisilicon/hpre/hpre_crypto.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt