Commit 08600b5d authored by Eric Biggers's avatar Eric Biggers Committed by William McVicker
Browse files

FROMLIST: crypto: arm64/sha256-ce - add support for finup_mb



Add an implementation of finup_mb to sha256-ce, using an interleaving
factor of 2.  It interleaves a finup operation for two equal-length
messages that share a common prefix.  dm-verity and fs-verity will take
advantage of this for greatly improved performance on capable CPUs.

On an ARM Cortex-X1, this increases the throughput of SHA-256 hashing
4096-byte messages by 70%.

Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
Reviewed-by: default avatarSami Tolvanen <samitolvanen@google.com>
Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>

Bug: 330611177
Link: https://lore.kernel.org/r/20240621165922.77672-6-ebiggers@kernel.org


Change-Id: Iadf56e5ce048c03ce97feae56c405634ef554cfa
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent 16e22de4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment