OSDN Git Service

lib/mpi: Extend the MPI library
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Sun, 20 Sep 2020 16:20:55 +0000 (00:20 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:53 +0000 (17:48 +1000)
commita8ea8bdd9df92a0e5db5b43900abb7a288b8a53e
treee2fcfdc11478594b102a5e0fa77d220903fc159b
parentf49282870fb039e3c2e5c3341bd27875282609d7
lib/mpi: Extend the MPI library

Expand the mpi library based on libgcrypt, and the ECC algorithm of
mpi based on libgcrypt requires these functions.
Some other algorithms will be developed based on mpi ecc, such as SM2.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Tested-by: Xufeng Zhang <yunbo.xufeng@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
14 files changed:
include/linux/mpi.h
lib/mpi/Makefile
lib/mpi/mpi-add.c [new file with mode: 0644]
lib/mpi/mpi-bit.c
lib/mpi/mpi-cmp.c
lib/mpi/mpi-div.c [new file with mode: 0644]
lib/mpi/mpi-internal.h
lib/mpi/mpi-inv.c [new file with mode: 0644]
lib/mpi/mpi-mod.c [new file with mode: 0644]
lib/mpi/mpi-mul.c [new file with mode: 0644]
lib/mpi/mpicoder.c
lib/mpi/mpih-div.c
lib/mpi/mpih-mul.c
lib/mpi/mpiutil.c