summaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mod.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/mpi: Add the return value check of kcalloc()Zizhuang Deng2022-01-071-0/+2
| | | | | | | | | | Add the return value check of kcalloc() to avoid potential NULL ptr dereference. Fixes: a8ea8bdd9df9 ("lib/mpi: Extend the MPI library") Signed-off-by: Zizhuang Deng <sunsetdzz@gmail.com> Reviewed-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
* lib/mpi: Extend the MPI libraryTianjia Zhang2020-09-251-0/+155
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>