aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-mul.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/crypto: Explicitly include <linux/export.h>Eric Biggers2025-06-301-0/+2
| | | | | | | | | | | | | | | | Fix build warnings with W=1 that started appearing after commit a934a57a42f6 ("scripts/misc-check: check missing #include <linux/export.h> when W=1"). While at it, also sort the include lists alphabetically. (Keep asm/irqflags.h last, as otherwise it doesn't build on alpha.) This handles all of lib/crypto/, but not arch/*/lib/crypto/. The exports in arch/*/lib/crypto/ will go away when the code is properly integrated into lib/crypto/ as planned. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
* crypto: lib/mpi - Fix an "Uninitialized scalar variable" issueQianqiang Liu2024-10-161-1/+1
| | | | | | | | The "err" variable may be returned without an initialized value. Fixes: 8e3a67f2de87 ("crypto: lib/mpi - Add error checks to extension") Signed-off-by: Qianqiang Liu <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
* crypto: lib/mpi - Add error checks to extensionHerbert Xu2024-08-171-6/+23
| | | | | | | | | | The remaining functions added by commit a8ea8bdd9df92a0e5db5b43900abb7a288b8a53e did not check for memory allocation errors. Add the checks and change the API to allow errors to be returned. Fixes: a8ea8bdd9df9 ("lib/mpi: Extend the MPI library") Signed-off-by: Herbert Xu <[email protected]>
* crypto: lib - Move mpi into lib/cryptoHerbert Xu2023-08-111-0/+92
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]>