aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mod.c
Commit message (Collapse)AuthorAgeFilesLines
* crypto: lib - Move mpi into lib/cryptoHerbert Xu2023-08-111-157/+0
| | | | | | | | | As lib/mpi is mostly used by crypto code, move it under lib/crypto so that patches touching it get directed to the right mailing list. Signed-off-by: Herbert Xu <[email protected]> Reviewed-by: Mimi Zohar <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
* 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 <[email protected]> Reviewed-by: Tianjia Zhang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
* 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 <[email protected]> Tested-by: Xufeng Zhang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>