mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 05:34:13 -05:00
Instead of exposing the powerpc-optimized MD5 code via powerpc-specific crypto_shash algorithms, instead just implement the md5_blocks() library function. This is much simpler, it makes the MD5 library functions be powerpc-optimized, and it fixes the longstanding issue where the powerpc-optimized MD5 code was disabled by default. MD5 still remains available through crypto_shash, but individual architectures no longer need to handle it. Link: https://lore.kernel.org/r/20250805222855.10362-5-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
13 lines
298 B
C
13 lines
298 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* MD5 optimized for PowerPC
|
|
*/
|
|
|
|
void ppc_md5_transform(u32 *state, const u8 *data, size_t nblocks);
|
|
|
|
static void md5_blocks(struct md5_block_state *state,
|
|
const u8 *data, size_t nblocks)
|
|
{
|
|
ppc_md5_transform(state->h, data, nblocks);
|
|
}
|