aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
AgeCommit message (Collapse)AuthorFilesLines
2022-01-07lib/mpi: Add the return value check of kcalloc()Zizhuang Deng1-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 <[email protected]> Reviewed-by: Tianjia Zhang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
2020-09-25lib/mpi: Extend the MPI libraryTianjia Zhang1-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 <[email protected]> Tested-by: Xufeng Zhang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>