Crypto library fixes for v6.17-rc5

Fix a regression caused by my commits that reimplemented the sha1,
 sha256, and sha512 crypto_shash algorithms on top of the library API.
 Specifically, the export_core and import_core methods stopped being
 supported, which broke some hardware offload drivers (such as qat)
 that recently started depending on these for fallback functionality.
 
 Later I'd like to make these drivers just use the library API for
 their fallback. Then these methods won't be needed anymore. But for
 now, this fixes the regression for 6.17.
 -----BEGIN PGP SIGNATURE-----
 
 iIoEABYIADIWIQSacvsUNc7UX4ntmEPzXCl4vpKOKwUCaLpYrBQcZWJpZ2dlcnNA
 a2VybmVsLm9yZwAKCRDzXCl4vpKOK8ZfAQDbPYyJbAS4nFIZt8wulDdw8oyMvNl9
 gdo3pfJUzo/gKwEAqOLra0dEy6Bvj0HqW5C8GMtFZjKJ1NbgXs9nTMKw0gc=
 =yidx
 -----END PGP SIGNATURE-----

Merge tag 'libcrypto-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux

Pull crypto library fixes from Eric Biggers:
 "Fix a regression caused by my commits that reimplemented the sha1,
  sha256, and sha512 crypto_shash algorithms on top of the library API.
  Specifically, the export_core and import_core methods stopped being
  supported, which broke some hardware offload drivers (such as qat)
  that recently started depending on these for fallback functionality.

  Later I'd like to make these drivers just use the library API for
  their fallback. Then these methods won't be needed anymore. But for
  now, this fixes the regression for 6.17"

* tag 'libcrypto-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
  crypto: sha512 - Implement export_core() and import_core()
  crypto: sha256 - Implement export_core() and import_core()
  crypto: sha1 - Implement export_core() and import_core()
This commit is contained in:
Linus Torvalds 2025-09-05 07:57:07 -07:00
commit 01c93aa01c
3 changed files with 181 additions and 0 deletions