aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto
AgeCommit message (Expand)AuthorFilesLines
2026-05-09lib/crypto: powerpc/md5: Drop powerpc optimized MD5 codeEric Biggers5-269/+7
2026-04-21Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2026-04-14lib/crypto: mpi: Fix integer underflow in mpi_read_raw_from_sgl()Lukas Wunner1-1/+1
2026-04-14Merge tag 'bitmap-for-v7.1' of https://github.com/norov/linuxLinus Torvalds1-4/+4
2026-04-13Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds63-1502/+6776
2026-04-01lib/crypto: arm64: Assume a little-endian kernelEric Biggers7-65/+36
2026-04-01lib/crypto: arm64/sha3: Remove obsolete chunking logicEric Biggers2-16/+7
2026-04-01lib/crypto: arm64/sha512: Remove obsolete chunking logicEric Biggers2-18/+9
2026-04-01lib/crypto: arm64/sha256: Remove obsolete chunking logicEric Biggers2-30/+13
2026-04-01lib/crypto: arm64/sha1: Remove obsolete chunking logicEric Biggers2-20/+9
2026-04-01lib/crypto: arm64/poly1305: Remove obsolete chunking logicEric Biggers1-10/+4
2026-04-01lib/crypto: arm64/gf128hash: Remove obsolete chunking logicEric Biggers1-20/+4
2026-04-01lib/crypto: arm64/chacha: Remove obsolete chunking logicEric Biggers1-12/+4
2026-04-01lib/crypto: arm64/aes: Remove obsolete chunking logicEric Biggers2-27/+16
2026-03-31lib/crypto: Include <crypto/utils.h> instead of <crypto/algapi.h>Eric Biggers3-4/+4
2026-03-31lib/crypto: aesgcm: Don't disable IRQs during AES block encryptionEric Biggers1-22/+3
2026-03-31lib/crypto: aescfb: Don't disable IRQs during AES block encryptionEric Biggers1-22/+3
2026-03-30lib/crypto: tests: Migrate ChaCha20Poly1305 self-test to KUnitEric Biggers6-760/+760
2026-03-30lib/crypto: sparc: Drop optimized MD5 codeEric Biggers4-120/+0
2026-03-30lib/crypto: mips: Drop optimized MD5 codeEric Biggers2-66/+0
2026-03-27lib/crypto: chacha: Zeroize permuted_state before it leaves scopeEric Biggers1-0/+4
2026-03-23lib: Move crypto library tests to Runtime Testing menuEric Biggers1-6/+0
2026-03-23crypto: sm3 - Remove the original "sm3_block_generic()"Eric Biggers1-16/+3
2026-03-23lib/crypto: x86/sm3: Migrate optimized code into libraryEric Biggers4-0/+557
2026-03-23lib/crypto: riscv/sm3: Migrate optimized code into libraryEric Biggers4-0/+166
2026-03-23lib/crypto: arm64/sm3: Migrate optimized code into libraryEric Biggers5-3/+790
2026-03-23lib/crypto: tests: Add KUnit tests for SM3Eric Biggers5-0/+273
2026-03-23lib/crypto: sm3: Add SM3 library APIEric Biggers2-19/+143
2026-03-23lib/crypto: aesgcm: Use GHASH library APIEric Biggers2-28/+29
2026-03-23lib/crypto: gf128mul: Remove unused 4k_lle functionsEric Biggers1-72/+1
2026-03-23lib/crypto: x86/ghash: Migrate optimized code into libraryEric Biggers3-10/+185
2026-03-23lib/crypto: s390/ghash: Migrate optimized code into libraryEric Biggers2-0/+55
2026-03-23lib/crypto: riscv/ghash: Migrate optimized code into libraryEric Biggers4-0/+133
2026-03-23lib/crypto: powerpc/ghash: Migrate optimized code into libraryEric Biggers5-5/+375
2026-03-23lib/crypto: arm64/ghash: Migrate optimized code into libraryEric Biggers3-8/+283
2026-03-23lib/crypto: arm/ghash: Migrate optimized code into libraryEric Biggers4-0/+254
2026-03-23lib/crypto: tests: Add KUnit tests for GHASHEric Biggers5-0/+390
2026-03-23lib/crypto: gf128hash: Add GHASH supportEric Biggers1-13/+132
2026-03-23lib/crypto: gf128hash: Support GF128HASH_ARCH without all POLYVAL functionsEric Biggers3-4/+18
2026-03-23lib/crypto: gf128hash: Rename polyval module to gf128hashEric Biggers7-42/+42
2026-03-23lib: crypto: fix comments for count_leading_zeros()Yury Norov1-4/+4
2026-03-19lib/crypto: arm64: Drop checks for CONFIG_KERNEL_MODE_NEONEric Biggers5-39/+19
2026-03-19lib/crypto: tests: Drop the default to CRYPTO_SELFTESTSEric Biggers1-13/+13
2026-03-19lib/crypto: tests: Introduce CRYPTO_LIB_ENABLE_ALL_FOR_KUNITEric Biggers2-21/+25
2026-03-17lib/crypto: powerpc: Add powerpc/aesp8-ppc.S to clean-filesEric Biggers1-0/+3
2026-03-14lib/crypto: x86/sha256: PHE Extensions optimized SHA256 transform functionAlanSong-oc1-0/+25
2026-03-09lib/crypto: aes: Add FIPS self-test for CMACEric Biggers2-3/+37
2026-03-09lib/crypto: tests: Add KUnit tests for CBC-based MACsEric Biggers5-0/+422
2026-03-09lib/crypto: arm64/aes: Migrate optimized CBC-based MACs into libraryEric Biggers2-11/+56
2026-03-09lib/crypto: arm64/aes: Move assembly code for AES modes into libaesEric Biggers5-1/+1294
2026-03-09lib/crypto: aes: Add support for CBC-based MACsEric Biggers2-0/+208
2026-03-02lib/crypto: tests: Add a .kunitconfig fileEric Biggers1-0/+34
2026-02-28lib/crypto: tests: Depend on library options rather than selecting themEric Biggers1-23/+12
2026-02-22Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-5/+7
2026-02-21Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentLinus Torvalds3-7/+7
2026-02-21treewide: Replace kmalloc with kmalloc_obj for non-scalar typesKees Cook3-7/+7
2026-02-18lib/crypto: powerpc/aes: Fix rndkey_from_vsx() on big endian CPUsEric Biggers1-5/+7
2026-02-11Merge tag 'net-next-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/net...Linus Torvalds1-46/+17
2026-02-03lib/crypto: mldsa: Clarify the documentation for mldsa_verify() slightlyEric Biggers1-1/+0
2026-01-27lib/crypto: sha1: Remove low-level functions from APIEric Biggers1-46/+17
2026-01-15lib/crypto: aes: Drop 'volatile' from aes_sbox and aes_inv_sboxEric Biggers1-7/+3
2026-01-15lib/crypto: aes: Remove old AES en/decryption functionsEric Biggers1-112/+6
2026-01-15lib/crypto: aesgcm: Use new AES library APIEric Biggers1-6/+6
2026-01-15lib/crypto: aescfb: Use new AES library APIEric Biggers1-15/+15
2026-01-15lib/crypto: x86/aes: Add AES-NI optimizationEric Biggers4-0/+348
2026-01-15lib/crypto: sparc/aes: Migrate optimized code into libraryEric Biggers4-0/+1694
2026-01-15lib/crypto: s390/aes: Migrate optimized code into libraryEric Biggers2-0/+107
2026-01-12lib/crypto: riscv/aes: Migrate optimized code into libraryEric Biggers4-0/+150
2026-01-12lib/crypto: powerpc/aes: Migrate POWER8 optimized code into libraryEric Biggers5-2/+4070
2026-01-12lib/crypto: powerpc/aes: Migrate SPE optimized code into libraryEric Biggers8-0/+1696
2026-01-12lib/crypto: arm64/aes: Migrate optimized code into libraryEric Biggers5-0/+386
2026-01-12lib/crypto: arm/aes: Migrate optimized code into libraryEric Biggers4-0/+261
2026-01-12lib/crypto: aes: Introduce improved AES libraryEric Biggers3-58/+354
2026-01-12lib/crypto: mldsa: Add FIPS cryptographic algorithm self-testEric Biggers2-0/+489
2026-01-12lib/crypto: nh: Restore dependency of arch code on !KMSANEric Biggers1-1/+1
2026-01-12lib/crypto: md5: Use rol32() instead of open-coding itRusydi H. Makarim1-1/+1
2026-01-12lib/crypto: x86/nh: Migrate optimized code into libraryEric Biggers5-0/+328
2026-01-12lib/crypto: arm64/nh: Migrate optimized code into libraryEric Biggers4-0/+139
2026-01-12lib/crypto: arm/nh: Migrate optimized code into libraryEric Biggers4-0/+151
2026-01-12lib/crypto: tests: Add KUnit tests for NHEric Biggers4-0/+350
2026-01-12lib/crypto: nh: Add NH libraryEric Biggers3-0/+100
2026-01-12lib/crypto: tests: Add KUnit tests for ML-DSA verificationEric Biggers4-0/+2335
2026-01-12lib/crypto: Add ML-DSA verification supportEric Biggers3-0/+664
2026-01-08lib/crypto: aes: Fix missing MMU protection for AES S-boxEric Biggers1-2/+2
2026-01-08lib/crypto: tests: polyval_kunit: Increase iterations for preparekey in IRQsThomas Weißschuh1-1/+1
2025-12-14lib/crypto: riscv: Add poly1305-core.S to .gitignoreCharles Mirabile1-0/+2
2025-12-09lib/crypto: blake2s: Replace manual unrolling with unrolled_fullEric Biggers1-22/+16
2025-12-09lib/crypto: blake2b: Roll up BLAKE2b round loop on 32-bitEric Biggers2-25/+20
2025-12-09lib/crypto: riscv: Depend on RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESSEric Biggers1-3/+6
2025-12-09lib/crypto: riscv/chacha: Avoid s0/fp registerVivian Wang1-3/+2
2025-12-03Merge tag 'v6.19-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-1/+1
2025-12-02Merge tag 'fpsimd-on-stack-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds14-84/+61
2025-12-02Merge tag 'libcrypto-at-least-for-linus' of git://git.kernel.org/pub/scm/linu...Linus Torvalds1-9/+9
2025-12-02Merge tag 'libcrypto-tests-for-linus' of git://git.kernel.org/pub/scm/linux/k...Linus Torvalds8-0/+1587
2025-12-02Merge 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-51/+147
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-1896/+7747
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-42/+24
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