aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpiutil.c
Commit message (Collapse)AuthorAgeFilesLines
* MPILIB: add mpi_read_buf() and mpi_get_size() helpersTadeusz Struk2015-06-161-3/+3
| | | | | | | | | | Added a mpi_read_buf() helper function to export MPI to a buf provided by the user, and a mpi_get_size() helper, that tells the user how big the buf is. Changed mpi_free to use kzfree instead of kfree because it is used to free crypto keys. Signed-off-by: Tadeusz Struk <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
* MPILIB: add module description and licenseKonstantin Khlebnikov2013-09-251-0/+3
| | | | | | | This patch fixes lack of license, otherwise mpi.ko taints kernel. Signed-off-by: Konstantin Khlebnikov <[email protected]> Signed-off-by: David Howells <[email protected]>
* Remove unused code from MPI libraryDmitry Kasatkin2012-05-261-88/+0
| | | | | | | | | | | MPI library is used by RSA verification implementation. Few files contains functions which are never called. James Morris has asked to remove all of them. Signed-off-by: Dmitry Kasatkin <[email protected]> Requested-by: James Morris <[email protected]> Signed-off-by: James Morris <[email protected]>
* lib/mpi: check for possible zero lengthDmitry Kasatkin2012-02-011-0/+3
| | | | | | | | | Buggy client might pass zero nlimbs which is meaningless. Added check for zero length. Signed-off-by: Dmitry Kasatkin <[email protected]> Reviewed-by: Tetsuo Handa <[email protected]> Signed-off-by: James Morris <[email protected]>
* lib/mpi: replaced MPI_NULL with normal NULLDmitry Kasatkin2012-02-011-1/+1
| | | | | | | | MPI_NULL is replaced with normal NULL. Signed-off-by: Dmitry Kasatkin <[email protected]> Reviewed-by: Tetsuo Handa <[email protected]> Signed-off-by: James Morris <[email protected]>
* crypto: GnuPG based MPI lib - source files (part 1)Dmitry Kasatkin2011-11-091-0/+208
Adds the multi-precision-integer maths library which was originally taken from GnuPG and ported to the kernel by (among others) David Howells. This version is taken from Fedora kernel 2.6.32-71.14.1.el6. The difference is that checkpatch reported errors and warnings have been fixed. This library is used to implemenet RSA digital signature verification used in IMA/EVM integrity protection subsystem. Due to patch size limitation, the patch is divided into 4 parts. Signed-off-by: Dmitry Kasatkin <[email protected]>