aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
AgeCommit message (Expand)AuthorFilesLines
2022-12-14Merge tag 'v6.2-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/...Linus Torvalds35-728/+1481
2022-12-12Merge tag 'pull-iov_iter' of git://git.kernel.org/pub/scm/linux/kernel/git/vi...Linus Torvalds1-2/+2
2022-12-02crypto: api - Increase MAX_ALGAPI_ALIGNMASK to 127Herbert Xu1-2/+7
2022-12-02crypto: Prepare to move crypto_tfm_ctxHerbert Xu17-17/+19
2022-12-02crypto: dh - Use helper to set reqsizeHerbert Xu1-1/+3
2022-12-02crypto: rsa-pkcs1pad - Use helper to set reqsizeHerbert Xu1-1/+4
2022-11-25use less confusing names for iov_iter direction initializersAl Viro1-2/+2
2022-11-25Revert "crypto: shash - avoid comparing pointers to exported functions under ...Eric Biggers1-15/+3
2022-11-25crypto: tcrypt - Fix multibuffer skcipher speed test mem leakZhang Yiqun1-9/+0
2022-11-25crypto: algboss - compile out test-related code when tests disabledEric Biggers1-5/+4
2022-11-25crypto: kdf - silence noisy self-testEric Biggers1-1/+1
2022-11-25crypto: kdf - skip self-test when tests disabledEric Biggers1-2/+6
2022-11-25crypto: api - compile out crypto_boot_test_finished when tests disabledEric Biggers3-6/+29
2022-11-25crypto: algboss - optimize registration of internal algorithmsEric Biggers2-13/+3
2022-11-25crypto: api - optimize algorithm registration when self-tests disabledEric Biggers2-71/+86
2022-11-18crypto: skcipher - Allow sync algorithms with large request contextsHerbert Xu1-1/+1
2022-11-18crypto: cryptd - Use request context instead of stack for sub-requestHerbert Xu1-17/+19
2022-11-18treewide: use get_random_u32_inclusive() when possibleJason A. Donenfeld2-6/+6
2022-11-18treewide: use get_random_u32_below() instead of deprecated functionJason A. Donenfeld2-44/+44
2022-11-11crypto: move gf128mul library into lib/cryptoArd Biesheuvel3-423/+3
2022-11-04crypto: tcrypt - add SM4 cts-cbc/xts/xcbc testTianjia Zhang1-0/+21
2022-11-04crypto: testmgr - add SM4 cts-cbc/xts/xcbc test vectorsTianjia Zhang2-0/+996
2022-11-04crypto: tcrypt - Drop leading newlines from printsAnirudh Venkataramanan1-5/+5
2022-11-04crypto: tcrypt - Drop module name from print stringAnirudh Venkataramanan1-2/+1
2022-11-04crypto: tcrypt - Use pr_info/pr_errAnirudh Venkataramanan1-7/+7
2022-11-04crypto: tcrypt - Use pr_cont to print test resultsAnirudh Venkataramanan1-4/+4
2022-10-28crypto: af_alg - Support symmetric encryption via keyring keysFrederick Lawler1-1/+134
2022-10-21crypto: tcrypt - fix return value for multiple subtestsRobert Elliott1-128/+128
2022-10-21crypto: ccm - use local variables instead of indirect referencesTianjia Zhang1-1/+1
2022-10-11treewide: use get_random_bytes() when possibleJason A. Donenfeld1-1/+1
2022-10-11treewide: use get_random_{u8,u16}() when possible, part 1Jason A. Donenfeld1-4/+4
2022-10-11treewide: use prandom_u32_max() when possible, part 1Jason A. Donenfeld1-43/+43
2022-10-10Merge tag 'mm-stable-2022-10-08' of git://git.kernel.org/pub/scm/linux/kernel...Linus Torvalds1-0/+2
2022-10-03crypto: kmsan: disable accelerated configs under KMSANAlexander Potapenko1-0/+30
2022-09-24crypto: tcrypt - add async speed test for aria cipherTaehee Yoo1-0/+30
2022-09-24crypto: aria - prepare generic module for optimized implementationsTaehee Yoo2-8/+33
2022-09-24crypto: add __init/__exit annotations to init/exit funcsXiu Jianfeng7-14/+14
2022-09-24crypto: blake2s - revert unintended config addition of CRYPTO_BLAKE2SLukas Bulwahn1-21/+0
2022-09-09crypto: akcipher - default implementation for setting a private keyIgnat Korchagin1-0/+8
2022-09-02crypto: testmgr - fix indentation for test_acomp() argsLucas Segarra Fernandez1-1/+1
2022-08-26crypto: Kconfig - simplify compression/RNG entriesRobert Elliott1-32/+50
2022-08-26crypto: Kconfig - simplify cipher entriesRobert Elliott1-113/+121
2022-08-26crypto: Kconfig - simplify userspace entriesRobert Elliott1-24/+41
2022-08-26crypto: Kconfig - simplify hash entriesRobert Elliott1-79/+97
2022-08-26crypto: Kconfig - simplify aead entriesRobert Elliott1-18/+30
2022-08-26crypto: Kconfig - simplify CRC entriesRobert Elliott1-12/+25
2022-08-26crypto: Kconfig - simplify public-key entriesRobert Elliott1-21/+34
2022-08-26crypto: Kconfig - add submenusRobert Elliott1-458/+479
2022-08-26crypto: Kconfig - submenus for arm and arm64Robert Elliott1-0/+6
2022-08-26crypto: Kconfig - move x86 entries to a submenuRobert Elliott1-495/+3
2022-08-26crypto: Kconfig - move sparc entries to a submenuRobert Elliott1-98/+3
2022-08-26crypto: Kconfig - move s390 entries to a submenuRobert Elliott1-115/+3
2022-08-26crypto: Kconfig - move powerpc entries to a submenuRobert Elliott1-73/+3
2022-08-26crypto: Kconfig - move mips entries to a submenuRobert Elliott1-55/+4
2022-08-26crypto: core - move from strlcpy with unused retval to strscpyWolfram Sang2-2/+2
2022-08-26crypto: tcrypt - remove mode=1000Robert Elliott1-27/+0
2022-08-19crypto: testmgr - don't generate WARN for missing modulesRobert Elliott1-2/+5
2022-08-19crypto: testmgr - extend acomp tests for NULL destination bufferLucas Segarra Fernandez1-0/+29
2022-08-19crypto: api - Fix comment typoJason Wang1-1/+1
2022-08-19crypto: drbg - remove unnecessary (void*) conversionsDong Chuanjian1-7/+5
2022-08-19crypto: lib - move __crypto_xor into utilsEric Biggers1-71/+0
2022-08-19crypto: lib - create utils module and move __crypto_memneq into itEric Biggers1-1/+1
2022-08-10crypto: blake2b: effectively disable frame size warningLinus Torvalds1-0/+1
2022-08-08Merge tag 'pull-work.iov_iter-rebased' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds2-4/+4
2022-08-08af_alg_make_sg(): switch to advancing variant of iov_iter_get_pages()Al Viro2-4/+4
2022-08-06Merge tag 'tpmdd-next-v5.20' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds3-2/+26
2022-08-04Merge tag 'for-5.20/block-2022-08-04' of git://git.kernel.dk/linux-blockLinus Torvalds2-0/+12
2022-08-03KEYS: asymmetric: enforce SM2 signature use pkey algoTianjia Zhang1-2/+5
2022-08-03pkcs7: support EC-RDSA/streebog in SignerInfoElvira Khabirova1-0/+11
2022-08-03pkcs7: parser support SM2 and SM3 algorithms combinationTianjia Zhang1-0/+7
2022-08-03X.509: Support parsing certificate using SM2 algorithmTianjia Zhang1-0/+3
2022-08-02Merge tag 'v5.20-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds13-420/+6145
2022-08-02crypto: add crypto_has_kpp()Hannes Reinecke1-0/+6
2022-08-02crypto: add crypto_has_shash()Hannes Reinecke1-0/+6
2022-07-29crypto: tcrypt - Remove the static variable initialisations to NULLJason Wang1-1/+1
2022-07-22crypto: testmgr - some more fixes to RSA test vectorsIgnat Korchagin1-39/+63
2022-07-22crypto: twofish - Fix comment typoJason Wang1-1/+1
2022-07-22crypto: rmd160 - fix Kconfig "its" grammarRandy Dunlap1-1/+1
2022-07-15crypto: lib - make the sha1 library optionalEric Biggers1-0/+1
2022-07-15crypto: fips - make proc files report fips module name and versionVladis Dronov2-5/+51
2022-07-15crypto: testmgr - add ARIA testmgr testsTaehee Yoo3-1/+2928
2022-07-15crypto: aria - Implement ARIA symmetric cipher algorithmTaehee Yoo3-0/+304
2022-07-08crypto: testmgr - populate RSA CRT parameters in RSA test vectorsIgnat Korchagin1-21/+100
2022-07-06crypto: s390 - do not depend on CRYPTO_HW for SIMD implementationsJason A. Donenfeld1-0/+114
2022-06-30crypto: testmgr - fix version number of RSA testslei he1-3/+3
2022-06-24crypto: rsa - implement Chinese Remainder Theorem for faster private key oper...Ignat Korchagin1-5/+73
2022-06-21Merge tag 'certs-20220621' of git://git.kernel.org/pub/scm/linux/kernel/git/d...Linus Torvalds6-1/+309
2022-06-21certs: Add FIPS selftestsDavid Howells5-1/+251
2022-06-21certs: Move load_certificate_list() to be with the asymmetric keys codeDavid Howells2-0/+58
2022-06-12crypto: memneq - move into lib/Jason A. Donenfeld3-177/+2
2022-06-10crypto: blake2s - remove shash moduleJason A. Donenfeld6-348/+1
2022-06-10crypto: memneq - move into lib/Jason A. Donenfeld3-177/+2
2022-06-10crypto: x86/polyval - Add PCLMULQDQ accelerated implementation of POLYVALNathan Huckleberry2-0/+49
2022-06-10crypto: x86/aesni-xctr - Add accelerated implementation of XCTRNathan Huckleberry1-1/+1
2022-06-10crypto: hctr2 - Add HCTR2 supportNathan Huckleberry6-0/+1278
2022-06-10crypto: polyval - Add POLYVAL supportNathan Huckleberry6-0/+395
2022-06-10crypto: xctr - Add XCTR supportNathan Huckleberry6-0/+901
2022-05-27Merge tag 'v5.19-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds8-36/+525
2022-05-23certs: Factor out the blacklist hash creationMickaël Salaün1-1/+2
2022-05-13crypto: cryptd - Protect per-CPU resource by disabling BH.Sebastian Andrzej Siewior1-12/+11
2022-04-29crypto: ecrdsa - Fix incorrect use of vli_cmpVitaly Chikunov1-4/+4
2022-04-08crypto: testmgr - test in-place en/decryption with two sglistsEric Biggers1-12/+63
2022-04-08crypto: engine - Add parameter description in crypto_transfer_request() kerne...Yang Li1-0/+1
2022-04-08crypto: sm4 - export sm4 constant arraysTianjia Zhang1-1/+9
2022-04-08crypto: sm3,sm4 - move into crypto directoryJason A. Donenfeld4-8/+438
2022-03-26Merge tag 'for-5.18/64bit-pi-2022-03-25' of git://git.kernel.dk/linux-blockLinus Torvalds5-0/+117
2022-03-22crypto: fix crc64 testmgr digest byte orderKeith Busch1-2/+2
2022-03-21Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds23-466/+2396
2022-03-14crypto: dh - Remove the unused function dh_safe_prime_dh_alg()Jiapeng Chong1-6/+0
2022-03-10KEYS: asymmetric: properly validate hash_algo and encodingEric Biggers1-35/+76
2022-03-10KEYS: asymmetric: enforce that sig algo matches key algoEric Biggers3-12/+15
2022-03-08KEYS: remove support for asym_tpm keysEric Biggers5-1097/+0
2022-03-08KEYS: x509: remove dead code that set ->unsupported_sigEric Biggers1-9/+0
2022-03-08KEYS: x509: remove never-set ->unsupported_key flagEric Biggers3-15/+2
2022-03-08KEYS: x509: remove unused fieldsEric Biggers1-2/+0
2022-03-08KEYS: x509: clearly distinguish between key and signature algorithmsEric Biggers2-15/+19
2022-03-07crypto: add rocksoft 64b crc guard tag frameworkKeith Busch5-0/+117
2022-03-03crypto: crypto_xor - use helpers for unaligned accessesArd Biesheuvel1-3/+21
2022-03-03crypto: cleanup commentsTom Rix6-10/+10
2022-03-03crypto: dh - calculate Q from P for the full public key verificationNicolai Stange1-11/+29
2022-03-03crypto: dh - disallow plain "dh" usage in FIPS modeNicolai Stange1-1/+0
2022-03-03crypto: api - allow algs only in specific constructions in FIPS modeNicolai Stange4-10/+54
2022-03-03crypto: dh - allow for passing NULL to the ffdheXYZ(dh)s' ->set_secret()Nicolai Stange1-7/+8
2022-03-03crypto: testmgr - add keygen tests for ffdheXYZ(dh) templatesNicolai Stange1-0/+558
2022-03-03crypto: dh - implement private key generation primitive for ffdheXYZ(dh)Nicolai Stange2-3/+138
2022-03-03crypto: testmgr - add known answer tests for ffdheXYZ(dh) templatesNicolai Stange2-0/+908
2022-03-03crypto: dh - implement ffdheXYZ(dh) templatesNicolai Stange2-1/+303
2022-03-03crypto: dh - introduce common code for built-in safe-prime group supportNicolai Stange1-0/+208
2022-03-03crypto: dh - split out deserialization code from crypto_dh_decode()Nicolai Stange1-8/+19
2022-03-03crypto: dh - remove struct dh's ->q memberNicolai Stange3-29/+10
2022-03-03crypto: kpp - provide support for KPP spawnsNicolai Stange1-0/+9
2022-03-03crypto: kpp - provide support for KPP template instancesNicolai Stange1-0/+20
2022-03-03crypto: engine - check if BH is disabled during completionCorentin Labbe1-0/+1
2022-02-18crypto: lrw - Add dependency on ecbHerbert Xu2-0/+2
2022-02-18crypto: xts - Add softdep on ecbHerbert Xu1-0/+1
2022-02-15crypto: af_alg - get rid of alg_memory_allocatedEric Dumazet1-3/+0
2022-02-11crypto: hmac - disallow keys < 112 bits in FIPS modeStephan Müller2-0/+13
2022-02-11crypto: hmac - add fips_skip supportStephan Müller2-0/+5
2022-02-09Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds2-1/+1
2022-02-05crypto: tcrypt - remove all multibuffer ahash testsTianjia Zhang1-224/+0
2022-02-05crypto: api - Move cryptomgr soft dependency into algapiHerbert Xu2-1/+1
2022-02-04lib/crypto: blake2s: avoid indirect calls to compression function for Clang CFIJason A. Donenfeld1-2/+2
2022-01-31crypto: memneq - avoid implicit unaligned accessesArd Biesheuvel1-7/+15
2022-01-31crypto: authenc - Fix sleep in atomic context in decrypt_tailHerbert Xu1-1/+1
2022-01-31crypto: rsa-pkcs1pad - use clearer variable namesEric Biggers1-15/+16
2022-01-31crypto: rsa-pkcs1pad - fix buffer overread in pkcs1pad_verify_complete()Eric Biggers1-0/+2
2022-01-31crypto: rsa-pkcs1pad - restore signature length checkEric Biggers1-1/+1
2022-01-31crypto: rsa-pkcs1pad - correctly get hash from source scatterlistEric Biggers1-1/+1
2022-01-31crypto: rsa-pkcs1pad - only allow with rsaEric Biggers1-0/+5
2022-01-31crypto: kdf - Select hmac in addition to sha256Herbert Xu1-0/+1
2022-01-31crypto: testmgr - Move crypto_simd_disabled_for_test outHerbert Xu2-3/+6
2022-01-28crypto: tcrypt - add asynchronous speed test for SM3Tianjia Zhang1-5/+9
2022-01-28crypto: x86/sm3 - add AVX assembly implementationTianjia Zhang1-0/+13
2022-01-28crypto: sm3 - make dependent on sm3 libraryTianjia Zhang2-127/+16
2022-01-28crypto: sm2 - make dependent on sm3 libraryTianjia Zhang2-20/+20
2022-01-18lib/crypto: add prompts back to crypto librariesJustin M. Forbes1-2/+0
2022-01-17Merge branch 'signal-for-v5.17' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+2
2022-01-11Merge tag 'tpmdd-next-v5.17-fixed' of git://git.kernel.org/pub/scm/linux/kern...Linus Torvalds5-35/+96
2022-01-11Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds13-118/+280
2022-01-09keys: X.509 public key issuer lookup without AKIDAndrew Zaborowski5-35/+96
2022-01-07crypto: af_alg - rewrite NULL pointer checkJiasheng Jiang1-2/+5
2022-01-07lib/crypto: blake2s: include as built-inJason A. Donenfeld1-1/+2
2021-12-31crypto: kdf - select SHA-256 required for self-testStephan Müller1-1/+1
2021-12-31crypto: sha256 - remove duplicate generic hash init functionTianjia Zhang1-14/+2
2021-12-31crypto: jitter - add oversampling of noise sourceStephan Müller1-2/+21
2021-12-13exit: Rename module_put_and_exit to module_put_and_kthread_exitEric W. Biederman1-2/+2
2021-12-11crypto: jitter - quit sample collection loop upon RCT failureNicolai Stange1-1/+1
2021-12-11crypto: jitter - don't limit ->health_failure check to FIPS modeNicolai Stange3-11/+0
2021-12-11crypto: drbg - ignore jitterentropy errors if not in FIPS modeNicolai Stange1-2/+5
2021-12-11crypto: dh - remove duplicate includesGuo Zhengkui1-1/+0
2021-11-26crypto: des - disallow des3 in FIPS modeStephan Müller1-9/+0
2021-11-26crypto: dh - limit key size to 2048 in FIPS modeStephan Müller1-0/+4
2021-11-26crypto: rsa - limit key size to 2048 in FIPS modeStephan Müller1-0/+4
2021-11-26crypto: jitter - consider 32 LSB for APTStephan Müller1-2/+1
2021-11-26crypto: kdf - add SP800-108 counter key derivation functionStephan Müller3-0/+162
2021-11-26crypto: drbg - reseed 'nopr' drbgs periodically from get_random_bytes()Nicolai Stange1-1/+25
2021-11-26crypto: drbg - make drbg_prepare_hrng() handle jent instantiation errorsNicolai Stange1-8/+8
2021-11-26crypto: drbg - make reseeding from get_random_bytes() synchronousNicolai Stange1-51/+11
2021-11-26crypto: drbg - move dynamic ->reseed_threshold adjustments to __drbg_seed()Nicolai Stange1-9/+21
2021-11-26crypto: drbg - track whether DRBG was seeded with !rng_is_initialized()Nicolai Stange1-4/+8
2021-11-26crypto: drbg - prepare for more fine-grained tracking of seeding stateNicolai Stange1-9/+10
2021-11-20crypto: testmgr - Fix wrong test case of RSALei He1-3/+3
2021-11-13Merge tag 'zstd-for-linus-v5.16' of git://github.com/terrelln/linuxLinus Torvalds1-14/+14
2021-11-12Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds1-0/+2
2021-11-09crypto: api - Fix boot-up crash when crypto manager is disabledHerbert Xu1-0/+2
2021-11-08lib: zstd: Add kernel-specific APINick Terrell1-14/+14
2021-11-08Merge tag 'kbuild-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/mas...Linus Torvalds1-0/+2
2021-11-01Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert...Linus Torvalds17-322/+205
2021-10-29crypto: testmgr - fix wrong key length for pkcs1padLei He1-1/+1
2021-10-29crypto: pcrypt - Delay write to padata->infoDaniel Jordan1-4/+8
2021-10-29crypto: ecc - Export additional helper functionsDaniele Alessandrelli1-4/+8
2021-10-29crypto: ecc - Move ecc.h to include/crypto/internalDaniele Alessandrelli6-250/+5
2021-10-29crypto: engine - Add KPP Support to Crypto EnginePrabhjot Khurana1-0/+26
2021-10-29crypto: api - Do not create test larvals if manager is disabledHerbert Xu2-25/+38
2021-10-25fs: get rid of the res2 iocb->ki_complete argumentJens Axboe1-1/+1
2021-10-22crypto: tcrypt - fix skcipher multi-buffer tests for 1420B blocksHoria Geantă1-3/+2
2021-10-08crypto: testmgr - Only disable migration in crypto_disable_simd_for_test()Sebastian Andrzej Siewior1-2/+2
2021-10-01crypto: api - Export crypto_boot_test_finishedHerbert Xu1-0/+1
2021-10-01crypto: ecc - fix CRYPTO_DEFAULT_RNG dependencyArnd Bergmann1-1/+1
2021-09-24crypto: api - Fix built-in testing dependency failuresHerbert Xu3-27/+108