summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorMeng Yu <yumeng18@huawei.com>2021-03-27 17:56:16 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2021-04-02 18:28:14 +1100
commit0ae869926fab00b95709518d72cca2d50a29eccd (patch)
treef9fe4b9977053af3fffdd3239817248ad951a950 /lib/mpi/mpi-sub-ui.c
parent9bb3fbbff3710dfebeed2f8cf9ee61c415722543 (diff)
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: Meng Yu <yumeng18@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions