summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2025-11-02 15:42:05 -0800
committerEric Biggers <ebiggers@kernel.org>2025-11-05 20:30:52 -0800
commitc19bdf24cc274e96006267173d664df2ef4b13db (patch)
tree5d95f23e3c40800b5d34d22d521648f145a3079b
parent2f22115709fc7ebcfa40af3367a508fbbd2f71e9 (diff)
lib/crypto: x86/blake2s: Drop check for nblocks == 0
Since blake2s_compress() is always passed nblocks != 0, remove the unnecessary check for nblocks == 0 from blake2s_compress_ssse3(). Note that this makes it consistent with blake2s_compress_avx512() in the same file as well as the arm32 blake2s_compress(). Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20251102234209.62133-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
-rw-r--r--lib/crypto/x86/blake2s-core.S3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/crypto/x86/blake2s-core.S b/lib/crypto/x86/blake2s-core.S
index 093e7814f387..aee13b97cc34 100644
--- a/lib/crypto/x86/blake2s-core.S
+++ b/lib/crypto/x86/blake2s-core.S
@@ -45,8 +45,6 @@ SIGMA2:
.text
SYM_FUNC_START(blake2s_compress_ssse3)
- testq %rdx,%rdx
- je .Lendofloop
movdqu (%rdi),%xmm0
movdqu 0x10(%rdi),%xmm1
movdqa ROT16(%rip),%xmm12
@@ -168,7 +166,6 @@ SYM_FUNC_START(blake2s_compress_ssse3)
movdqu %xmm0,(%rdi)
movdqu %xmm1,0x10(%rdi)
movdqu %xmm14,0x20(%rdi)
-.Lendofloop:
RET
SYM_FUNC_END(blake2s_compress_ssse3)