lkml.org 
[lkml]   [2021]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] crypto: hisilicon/hpre - Add processing of src_data in 'CURVE25519'
On Sat, Mar 27, 2021 at 05:56:16PM +0800, Meng Yu wrote:
> HPRE can only deal with src_data smaller than 'p' in 'CURVE25519'
> algorithm, but 'rfc7748' says:
> 'Implementations MUST accept non-canonical values and process them as
> if they had been reduced modulo the field prime'
> So we get its modulus to p, and then deal it with HPRE.
>
> Signed-off-by: Meng Yu <yumeng18@huawei.com>
> ---
> drivers/crypto/hisilicon/hpre/hpre_crypto.c | 22 ++++++++++++++++++----
> 1 file changed, 18 insertions(+), 4 deletions(-)

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

\
 
 \ /
  Last update: 2021-04-02 11:49    [W:0.049 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site