Skip to content
Commit 0ae86992 authored by Meng Yu's avatar Meng Yu Committed by Herbert Xu
Browse files

crypto: hisilicon/hpre - Add processing of src_data in 'CURVE25519'



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: default avatarMeng Yu <yumeng18@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9bb3fbbf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment