aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-pow.c
Commit message (Collapse)AuthorAgeFilesLines
* crypto: lib/mpi - Use swap() in mpi_powm()Jiapeng Chong2024-06-211-7/+2
| | | | | | | | | | | | Use existing swap() function rather than duplicating its implementation. ./lib/crypto/mpi/mpi-pow.c:211:11-12: WARNING opportunity for swap(). ./lib/crypto/mpi/mpi-pow.c:239:12-13: WARNING opportunity for swap(). Reported-by: Abaci Robot <[email protected]> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9327 Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
* crypto: lib - Move mpi into lib/cryptoHerbert Xu2023-08-111-0/+314
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]>