mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
lib/mpi: Introduce ec implementation to MPI library
The implementation of EC is introduced from libgcrypt as the basic algorithm of elliptic curve, which can be more perfectly integrated with MPI implementation. 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>
This commit is contained in:
parent
a8ea8bdd9d
commit
d58bb7e55a
3 changed files with 1615 additions and 0 deletions
|
@ -13,6 +13,7 @@ mpi-y = \
|
|||
generic_mpih-rshift.o \
|
||||
generic_mpih-sub1.o \
|
||||
generic_mpih-add1.o \
|
||||
ec.o \
|
||||
mpicoder.o \
|
||||
mpi-add.o \
|
||||
mpi-bit.o \
|
||||
|
|
1509
lib/mpi/ec.c
Normal file
1509
lib/mpi/ec.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue