aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto
AgeCommit message (Expand)AuthorFilesLines
9 daysMerge tag 'v6.19-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-1/+1
9 daysMerge tag 'fpsimd-on-stack-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds14-84/+61
9 daysMerge tag 'libcrypto-at-least-for-linus' of git://git.kernel.org/pub/scm/linu...Linus Torvalds1-9/+9
9 daysMerge tag 'libcrypto-tests-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds8-0/+1587
9 daysMerge tag 'libcrypto-updates-for-linus' of git://git.kernel.org/pub/scm/linux...Linus Torvalds30-208/+2959
2025-11-24crypto: lib/mpi - use min() instead of min_t()David Laight1-1/+1
2025-11-23lib/crypto: chacha20poly1305: Statically check fixed array lengthsJason A. Donenfeld1-9/+9
2025-11-21lib/crypto: tests: Fix KMSAN warning in test_sha256_finup_2x()Eric Biggers1-0/+1
2025-11-12lib/crypto: arm64: Move remaining algorithms to scoped ksimd APIArd Biesheuvel2-21/+16
2025-11-12lib/crypto: arm/blake2b: Move to scoped ksimd APIArd Biesheuvel1-3/+2
2025-11-12Merge tag 'scoped-ksimd-for-arm-arm64' into libcrypto-fpsimd-on-stackEric Biggers11-60/+43
2025-11-12lib/crypto: Switch ARM and arm64 to 'ksimd' scoped guard APIArd Biesheuvel11-60/+43
2025-11-11lib/crypto: tests: Add KUnit tests for POLYVALEric Biggers4-0/+419
2025-11-11lib/crypto: tests: Add additional SHAKE testsEric Biggers2-55/+151
2025-11-11lib/crypto: tests: Add SHA3 kunit testsDavid Howells4-0/+587
2025-11-11lib/crypto: tests: Add KUnit tests for BLAKE2bEric Biggers4-0/+485
2025-11-11lib/crypto: x86/polyval: Migrate optimized code into libraryEric Biggers4-0/+404
2025-11-11lib/crypto: arm64/polyval: Migrate optimized code into libraryEric Biggers4-0/+443
2025-11-11lib/crypto: polyval: Add POLYVAL libraryEric Biggers3-0/+325
2025-11-05lib/crypto: x86/blake2s: Use vpternlogd for 3-input XORsEric Biggers1-4/+2
2025-11-05lib/crypto: x86/blake2s: Avoid writing back unchanged 'f' valueEric Biggers1-2/+2
2025-11-05lib/crypto: x86/blake2s: Improve readabilityEric Biggers1-97/+134
2025-11-05lib/crypto: x86/blake2s: Use local labels for dataEric Biggers1-19/+26
2025-11-05lib/crypto: x86/blake2s: Drop check for nblocks == 0Eric Biggers1-3/+0
2025-11-05lib/crypto: x86/blake2s: Fix 32-bit arg treated as 64-bitEric Biggers1-2/+2
2025-11-05lib/crypto: arm, arm64: Drop filenames from file commentsEric Biggers7-7/+7
2025-11-05lib/crypto: arm/blake2s: Fix some commentsEric Biggers1-4/+4
2025-11-05lib/crypto: s390/sha3: Add optimized one-shot SHA-3 digest functionsEric Biggers1-2/+65
2025-11-05lib/crypto: sha3: Support arch overrides of one-shot digest functionsEric Biggers1-0/+37
2025-11-05lib/crypto: s390/sha3: Add optimized Keccak functionsEric Biggers2-0/+89
2025-11-05lib/crypto: arm64/sha3: Migrate optimized code into libraryEric Biggers4-0/+285
2025-11-05lib/crypto: sha3: Add FIPS cryptographic algorithm self-testEric Biggers2-1/+23
2025-11-05lib/crypto: sha3: Move SHA3 Iota step mapping into round functionDavid Howells1-6/+6
2025-11-05lib/crypto: sha3: Add SHA-3 supportDavid Howells3-0/+371
2025-11-04lib/crypto: arm/curve25519: Disable on CPU_BIG_ENDIANEric Biggers1-1/+1
2025-11-04lib/crypto: curve25519-hacl64: Fix older clang KASAN workaround for GCCNathan Chancellor1-1/+1
2025-10-29lib/crypto: arm/blake2b: Migrate optimized code into libraryEric Biggers4-0/+393
2025-10-29lib/crypto: blake2b: Add BLAKE2b library functionsEric Biggers3-0/+193
2025-10-29lib/crypto: blake2s: Drop excessive const & rename block => dataEric Biggers4-20/+18
2025-10-29lib/crypto: blake2s: Rename blake2s_state to blake2s_ctxEric Biggers5-54/+53
2025-10-29lib/crypto: blake2s: Adjust parameter order of blake2s()Eric Biggers1-8/+8
2025-10-29lib/crypto: Add FIPS self-tests for SHA-1 and SHA-2Eric Biggers4-6/+96
2025-10-22lib/crypto: poly1305: Restore dependency of arch code on !KMSANEric Biggers1-1/+1
2025-09-29Merge tag 'fsverity-for-linus' of git://git.kernel.org/pub/scm/fs/fsverity/linuxLinus Torvalds6-11/+972
2025-09-29Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds88-1897/+7748
2025-09-29Merge tag 'crc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/eb...Linus Torvalds1-119/+4
2025-09-17lib/crypto: tests: Add tests and benchmark for sha256_finup_2x()Eric Biggers1-0/+184
2025-09-17lib/crypto: x86/sha256: Add support for 2-way interleaved hashingEric Biggers2-0/+407
2025-09-17lib/crypto: arm64/sha256: Add support for 2-way interleaved hashingEric Biggers2-6/+315
2025-09-17lib/crypto: sha256: Add support for 2-way interleaved hashingEric Biggers1-5/+66
2025-09-06lib/crypto: tests: Enable Curve25519 test when CRYPTO_SELFTESTSEric Biggers1-1/+1
2025-09-06lib/crypto: curve25519: Consolidate into single moduleEric Biggers9-72/+4645
2025-09-06lib/crypto: curve25519: Move a couple functions out-of-lineEric Biggers1-1/+33
2025-09-06lib/crypto: tests: Add Curve25519 benchmarkEric Biggers1-1/+32
2025-09-06lib/crypto: tests: Migrate Curve25519 self-test to KUnitEric Biggers5-35/+52
2025-08-29lib/crypto: tests: Add KUnit tests for BLAKE2sEric Biggers4-0/+383
2025-08-29lib/crypto: blake2s: Consolidate into single C translation unitEric Biggers11-92/+47
2025-08-29lib/crypto: blake2s: Move generic code into blake2s.cEric Biggers3-112/+94
2025-08-29lib/crypto: blake2s: Always enable arch-optimized BLAKE2s codeEric Biggers2-2/+2
2025-08-29lib/crypto: blake2s: Remove obsolete self-testEric Biggers3-662/+0
2025-08-29lib/crypto: x86/blake2s: Reduce size of BLAKE2S_SIGMA2Eric Biggers1-14/+14
2025-08-29lib/crypto: chacha: Consolidate into single moduleEric Biggers24-265/+122
2025-08-29lib/crypto: chacha: Rename libchacha.c to chacha.cEric Biggers2-0/+1
2025-08-29lib/crypto: chacha: Rename chacha.c to chacha-block-generic.cEric Biggers2-2/+2
2025-08-29lib/crypto: chacha: Remove unused function chacha_is_arch_optimized()Eric Biggers7-43/+0
2025-08-29lib/crypto: riscv/poly1305: Import OpenSSL/CRYPTOGAMS implementationZhihang Shao4-1/+877
2025-08-29lib/crypto: poly1305: Consolidate into single moduleEric Biggers26-415/+290
2025-08-29lib/crypto: poly1305: Remove unused function poly1305_is_arch_optimized()Eric Biggers5-32/+0
2025-08-27lib/crypto: Drop inline from all *_mod_init_arch() functionsEric Biggers18-18/+18
2025-08-27lib/crypto: tests: Add KUnit tests for MD5 and HMAC-MD5Eric Biggers4-0/+236
2025-08-26lib/crypto: sparc/md5: Migrate optimized code into libraryEric Biggers4-0/+120
2025-08-26lib/crypto: powerpc/md5: Migrate optimized code into libraryEric Biggers4-0/+249
2025-08-26lib/crypto: mips/md5: Migrate optimized code into libraryEric Biggers2-0/+66
2025-08-26lib/crypto: md5: Add MD5 and HMAC-MD5 library functionsEric Biggers3-0/+342
2025-08-26lib/crypto: sha512: Use underlying functions instead of crypto_simd_usable()Eric Biggers4-12/+6
2025-08-26lib/crypto: sha256: Use underlying functions instead of crypto_simd_usable()Eric Biggers4-16/+15
2025-08-14lib/crypto: ensure generated *.S files are removed on make cleanTal Zussman1-4/+4
2025-08-14lib/crypto: sha: Update Kconfig help for SHA1 and SHA256Eric Biggers1-5/+5
2025-08-11kunit, lib/crypto: Move run_irq_test() to common headerEric Biggers1-119/+4
2025-07-29Merge tag 's390-6.17-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390...Linus Torvalds1-0/+1
2025-07-28Merge tag 'libcrypto-tests-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds17-0/+2619
2025-07-21lib/crypto: tests: Annotate worker to be on stackGuenter Roeck1-1/+1
2025-07-20lib/crypto: arm64/sha512-ce: Drop compatibility macros for older binutilsEric Biggers1-20/+11
2025-07-20lib/crypto: x86/sha1-ni: Convert to use rounds macrosEric Biggers1-158/+29
2025-07-20lib/crypto: x86/sha1-ni: Minor optimizations and cleanupEric Biggers1-43/+25
2025-07-14lib/crypto: tests: Add KUnit tests for SHA-1 and HMAC-SHA1Eric Biggers4-0/+262
2025-07-14lib/crypto: tests: Add KUnit tests for Poly1305Eric Biggers4-0/+361
2025-07-14lib/crypto: tests: Add KUnit tests for SHA-384 and SHA-512Eric Biggers6-0/+723
2025-07-14lib/crypto: tests: Add KUnit tests for SHA-224 and SHA-256Eric Biggers8-0/+590
2025-07-14lib/crypto: tests: Add hash-test-template.h and gen-hash-testvecs.pyEric Biggers1-0/+683
2025-07-14lib/crypto: x86/sha1: Migrate optimized code into libraryEric Biggers6-0/+1625
2025-07-14lib/crypto: sparc/sha1: Migrate optimized code into libraryEric Biggers4-0/+117
2025-07-14lib/crypto: s390/sha1: Migrate optimized code into libraryEric Biggers2-0/+29
2025-07-14lib/crypto: powerpc/sha1: Migrate optimized code into libraryEric Biggers5-0/+554
2025-07-14lib/crypto: mips/sha1: Migrate optimized code into libraryEric Biggers2-0/+82
2025-07-14lib/crypto: arm64/sha1: Migrate optimized code into libraryEric Biggers4-0/+171
2025-07-14lib/crypto: arm/sha1: Migrate optimized code into libraryEric Biggers6-0/+1315
2025-07-14lib/crypto: sha1: Add HMAC supportEric Biggers1-3/+105
2025-07-14lib/crypto: sha1: Add SHA-1 library functionsEric Biggers3-7/+124
2025-07-14lib/crypto: sha1: Rename sha1_init() to sha1_init_raw()Eric Biggers1-3/+3
2025-07-14lib/crypto: sha2: Add hmac_sha*_init_usingrawkey()Eric Biggers2-34/+74
2025-07-14lib/crypto: arm/poly1305: Remove unneeded empty weak functionEric Biggers2-6/+1
2025-07-11lib/crypto: x86/poly1305: Fix performance regression on short messagesEric Biggers1-0/+8
2025-07-11lib/crypto: x86/poly1305: Fix register corruption in no-SIMD contextsEric Biggers1-1/+39
2025-07-11lib/crypto: arm64/poly1305: Fix register corruption in no-SIMD contextsEric Biggers1-1/+2
2025-07-11lib/crypto: arm/poly1305: Fix register corruption in no-SIMD contextsEric Biggers1-1/+2
2025-07-08lib/crypto: hash_info: Move hash_info.c into lib/crypto/Eric Biggers3-0/+68
2025-07-04lib/crypto: x86/sha256: Remove unnecessary checks for nblocks==0Eric Biggers4-10/+0
2025-07-04lib/crypto: x86/sha256: Move static_call above kernel-mode FPU sectionEric Biggers5-34/+25
2025-07-04lib/crypto: sha256: Sync sha256_update() with sha512_update()Eric Biggers1-3/+25
2025-07-04lib/crypto: sha256: Consolidate into single moduleEric Biggers26-390/+281
2025-07-04lib/crypto: sha256: Remove sha256_is_arch_optimized()Eric Biggers7-44/+0
2025-07-04lib/crypto: sha256: Add HMAC-SHA224 and HMAC-SHA256 supportEric Biggers1-5/+142
2025-07-04lib/crypto: sha256: Propagate sha256_block_state type to implementationsEric Biggers15-34/+48
2025-07-04lib/crypto: sha256: Make library API use strongly-typed contextsEric Biggers1-27/+73
2025-07-04lib/crypto: sha256: Add sha224() and sha224_update()Eric Biggers1-0/+10
2025-07-04lib/crypto: sha256: Remove sha256_blocks_simd()Eric Biggers12-58/+34
2025-07-04lib/crypto: sha256: Reorder some codeEric Biggers1-6/+6
2025-06-30lib/crypto: mips/chacha: Fix clang build and remove unneeded byteswapEric Biggers1-13/+7
2025-06-30lib/crypto: x86: Move arch/x86/lib/crypto/ into lib/crypto/Eric Biggers18-1/+9666
2025-06-30lib/crypto: sparc: Move arch/sparc/lib/crypto/ into lib/crypto/Eric Biggers6-1/+156
2025-06-30lib/crypto: s390: Move arch/s390/lib/crypto/ into lib/crypto/Eric Biggers8-1/+1047
2025-06-30lib/crypto: riscv: Move arch/riscv/lib/crypto/ into lib/crypto/Eric Biggers8-1/+689
2025-06-30lib/crypto: powerpc: Move arch/powerpc/lib/crypto/ into lib/crypto/Eric Biggers10-1/+2533
2025-06-30lib/crypto: mips: Move arch/mips/lib/crypto/ into lib/crypto/Eric Biggers9-1/+1867
2025-06-30lib/crypto: arm64: Move arch/arm64/lib/crypto/ into lib/crypto/Eric Biggers12-2/+2960
2025-06-30lib/crypto: arm: Move arch/arm/lib/crypto/ into lib/crypto/Eric Biggers15-1/+3833
2025-06-30lib/crypto: x86/sha512: Remove unnecessary checks for nblocks==0Eric Biggers3-14/+3
2025-06-30lib/crypto: x86/sha512: Migrate optimized SHA-512 code to libraryEric Biggers6-0/+1656
2025-06-30lib/crypto: sparc/sha512: Migrate optimized SHA-512 code to libraryEric Biggers4-0/+146
2025-06-30lib/crypto: s390/sha512: Migrate optimized SHA-512 code to libraryEric Biggers2-0/+29
2025-06-30lib/crypto: riscv/sha512: Migrate optimized SHA-512 code to libraryEric Biggers4-0/+247
2025-06-30lib/crypto: mips/sha512: Migrate optimized SHA-512 code to libraryEric Biggers2-0/+75
2025-06-30lib/crypto: arm64/sha512: Migrate optimized SHA-512 code to libraryEric Biggers5-0/+265
2025-06-30lib/crypto: arm/sha512: Migrate optimized SHA-512 code to libraryEric Biggers5-0/+712
2025-06-30lib/crypto: sha512: Add HMAC-SHA384 and HMAC-SHA512 supportEric Biggers2-4/+142
2025-06-30lib/crypto: sha512: Add support for SHA-384 and SHA-512Eric Biggers3-0/+281
2025-06-30lib/crypto: Explicitly include <linux/export.h>Eric Biggers30-38/+64
2025-06-19Merge tag 'v6.16-p5' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-1/+1
2025-06-15lib/crypto/curve25519-hacl64: Disable KASAN with clang-17 and olderNathan Chancellor1-0/+4
2025-06-15lib/crypto: Annotate crypto strings with nonstringKees Cook2-27/+27
2025-06-13crypto: testmgr - reinstate kconfig control over full self-testsEric Biggers1-1/+1
2025-05-12crypto: testmgr - make it easier to enable the full set of testsEric Biggers1-1/+1
2025-05-12crypto: testmgr - replace CRYPTO_MANAGER_DISABLE_TESTS with CRYPTO_SELFTESTSEric Biggers6-11/+8
2025-05-12crypto: lib/chacha - add array bounds to function prototypesEric Biggers2-9/+8
2025-05-12crypto: lib/chacha - add strongly-typed state zeroizationEric Biggers1-3/+3
2025-05-12crypto: lib/chacha - use struct assignment to copy stateEric Biggers1-6/+2
2025-05-12crypto: lib/chacha - strongly type the ChaCha stateEric Biggers4-44/+52
2025-05-06crypto: lib/poly1305 - Build main library on LIB_POLY1305 and split generic c...Herbert Xu3-11/+30
2025-05-05crypto: lib/sha256 - Use generic block helperHerbert Xu1-61/+10
2025-05-05crypto: lib/sha256 - Add helpers for block-based shashHerbert Xu2-23/+17
2025-05-05crypto: lib/sha256 - improve function prototypesEric Biggers1-4/+4
2025-05-05crypto: sparc/sha256 - implement library instead of shashEric Biggers1-0/+3
2025-05-05crypto: sha256 - support arch-optimized lib and expose through shashEric Biggers4-109/+246
2025-05-05crypto: lib/poly1305 - Use block-only interfaceHerbert Xu1-13/+26
2025-05-05crypto: lib/poly1305 - Add block-only interfaceHerbert Xu1-31/+23
2025-04-28crypto: lib/poly1305 - remove INTERNAL symbol and selection of CRYPTOEric Biggers1-11/+5
2025-04-28crypto: lib/chacha - remove INTERNAL symbol and selection of CRYPTOEric Biggers1-11/+5
2025-04-28crypto: x86 - move library functions to arch/x86/lib/crypto/Eric Biggers1-0/+3
2025-04-28crypto: s390 - move library functions to arch/s390/lib/crypto/Eric Biggers1-0/+3
2025-04-28crypto: riscv - move library functions to arch/riscv/lib/crypto/Eric Biggers1-0/+3
2025-04-28crypto: powerpc - move library functions to arch/powerpc/lib/crypto/Eric Biggers1-0/+3
2025-04-28crypto: mips - move library functions to arch/mips/lib/crypto/Eric Biggers1-0/+3
2025-04-28crypto: arm64 - move library functions to arch/arm64/lib/crypto/Eric Biggers1-0/+3
2025-04-28crypto: arm - move library functions to arch/arm/lib/crypto/Eric Biggers1-0/+6
2025-04-23crypto: lib/sm3 - Remove partial block helpersHerbert Xu1-63/+3
2025-04-23crypto: sha256_base - Remove partial block helpersHerbert Xu1-9/+2
2025-04-23crypto: riscv/sha256 - Use API partial block handlingHerbert Xu1-5/+13
2025-04-16crypto: poly1305 - remove rset and sset fields of poly1305_desc_ctxEric Biggers1-2/+0
2025-04-16crypto: lib/sm3 - Export generic block functionHerbert Xu1-13/+12
2025-04-16crypto: lib/sm3 - Move sm3 library into lib/cryptoHerbert Xu3-0/+252
2025-03-21crypto: lib/Kconfig - hide library optionsArnd Bergmann1-4/+4
2025-03-08crypto: lib/chachapoly - Drop dependency on CRYPTO_ALGAPIArd Biesheuvel2-6/+3
2025-03-02crypto: lib/Kconfig - Hide arch options from userHerbert Xu1-20/+21
2025-02-22crypto: lib/Kconfig - Fix lib built-in failure when arch is modularHerbert Xu1-8/+18
2024-12-28crypto: lib/aesgcm - Reduce stack usage in libaesgcm_initHerbert Xu1-1/+1
2024-12-21crypto: lib/gf128mul - Remove some bbe deadcodeDr. David Alan Gilbert1-75/+0
2024-11-19Merge tag 'v6.13-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds3-0/+14
2024-11-15crypto: lib/mpi - Export mpi_set_bitHerbert Xu1-0/+1
2024-10-28crypto: api - move crypto_simd_disabled_for_test to libEric Biggers2-0/+13
2024-10-21Merge tag 'v6.12-p4' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-1/+1
2024-10-16crypto: lib/mpi - Fix an "Uninitialized scalar variable" issueQianqiang Liu1-1/+1
2024-10-05crypto: lib/mpi - Fix an "Uninitialized scalar variable" issueQianqiang Liu1-1/+1
2024-10-02move asm/unaligned.h to linux/unaligned.hAl Viro15-15/+15
2024-08-17crypto: lib/mpi - Add error checks to extensionHerbert Xu7-47/+117
2024-08-17Revert "lib/mpi: Extend the MPI library"Herbert Xu11-1100/+10
2024-08-10Revert "lib/mpi: Introduce ec implementation to MPI library"Herbert Xu2-1508/+0
2024-07-13crypto: lib/mpi - delete unnecessary conditionDan Carpenter1-6/+4
2024-06-21crypto: lib - add missing MODULE_DESCRIPTION() macrosJeff Johnson3-0/+3
2024-06-21crypto: lib/mpi - Use swap() in mpi_powm()Jiapeng Chong1-7/+2
2024-06-21crypto: lib/mpi - Use swap() in mpi_ec_mul_point()Jiapeng Chong1-4/+2
2024-06-07crypto: lib - add missing MODULE_DESCRIPTION() macrosJeff Johnson4-0/+4
2024-05-09crypto: lib - implement library version of AES in CFB modeArd Biesheuvel3-0/+265
2023-12-22crypto: lib/mpi - Fix unexpected pointer access in mpi_ec_initTianjia Zhang1-0/+3
2023-11-17crypto: lib/aesgcm - Add kernel docs for aesgcm_macSagar Vashnav1-0/+13
2023-08-11crypto: lib/mpi - avoid null pointer deref in mpi_cmp_ui()Mark O'Donovan1-2/+6
2023-08-11crypto: lib - Move mpi into lib/cryptoHerbert Xu27-0/+7300
2023-06-30Merge tag 'v6.5-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/...Linus Torvalds1-59/+18
2023-06-05types: Introduce [us]128Peter Zijlstra2-4/+0
2023-05-19crypto: lib/sha256 - Use generic code from sha256_baseHerbert Xu1-54/+19