]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73185f0441e5d77d1077e6188f2fb675a7f153ee
treee2fcfdc11478594b102a5e0fa77d220903fc159b
parentd69bf2df645ea2d7bcc8afbe4211e4ddbb23b4c9
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