]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: md5 - Implement export_core() and import_core()
authorEric Biggers <ebiggers@kernel.org>
Sat, 6 Sep 2025 21:54:17 +0000 (14:54 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 8 Sep 2025 16:47:38 +0000 (09:47 -0700)
commitb94bc4398beccd329a51052c5e7e84e4670dbcd9
treede6c772b04809ce564d13c166a70dffc4d3973c1
parent54e7bb6ade8acd3fb1c486c9f3e2c0dfdc18f84e
crypto: md5 - Implement export_core() and import_core()

Since commit 9d7a0ab1c753 ("crypto: ahash - Handle partial blocks in
API"), the recently-added export_core() and import_core() methods in
struct shash_alg have effectively become mandatory (even though it is
not tested or enforced), since legacy drivers that need a fallback
depend on them.  Make crypto/md5.c compatible with these legacy drivers
by adding export_core() and import_core() methods to it.

Fixes: ba8ee22a7f92 ("crypto: md5 - Wrap library and add HMAC support")
Link: https://lore.kernel.org/r/20250906215417.89584-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
crypto/md5.c