13 Jun, 2013
1 commit
-
For 'while' looping, need stop when 'nbytes == 0', or will cause issue.
('nbytes' is size_t which is always bigger or equal than zero).The related warning: (with EXTRA_CFLAGS=-W)
lib/mpi/mpicoder.c:40:2: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
Signed-off-by: Chen Gang
Cc: Rusty Russell
Cc: David Howells
Cc: James Morris
Cc: Andy Shevchenko
Acked-by: David Howells
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
01 Feb, 2013
1 commit
-
Remove MIN, MAX and ABS macros that are duplicates kernel's native
implementation.Signed-off-by: Andy Shevchenko
Signed-off-by: James Morris
08 Oct, 2012
1 commit
-
Provide a function to read raw data of a predetermined size into an MPI rather
than expecting the size to be encoded within the data. The data is assumed to
represent an unsigned integer, and the resulting MPI will be positive.The function looks like this:
MPI mpi_read_raw_data(const void *, size_t);
This is useful for reading ASN.1 integer primitives where the length is encoded
in the ASN.1 metadata.Signed-off-by: David Howells
Signed-off-by: Rusty Russell
26 May, 2012
1 commit
-
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
Requested-by: James Morris
Signed-off-by: James Morris
01 Feb, 2012
3 commits
-
do_encode_md() and mpi_get_keyid() are not parts of mpi library.
They were used early versions of gnupg and in digsig project,
but they are not used neither here nor there anymore.Signed-off-by: Dmitry Kasatkin
Reviewed-by: Tetsuo Handa
Signed-off-by: James Morris -
MPI_NULL is replaced with normal NULL.
Signed-off-by: Dmitry Kasatkin
Reviewed-by: Tetsuo Handa
Signed-off-by: James Morris -
Added missing NULL check after mpi_alloc().
Signed-off-by: Dmitry Kasatkin
Reviewed-by: Tetsuo Handa
Signed-off-by: James Morris
19 Jan, 2012
1 commit
-
Add a missing ENOMEM check.
Signed-off-by: David Howells
Acked-by: Mimi Zohar
Signed-off-by: James Morris
09 Nov, 2011
1 commit
-
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