lib/crypto: x86/blake2s: Drop check for nblocks == 0
Subsystems (2)
Eric Biggers
maintainerPATCH 1/1 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().
Signed-off-by Eric Biggers <[email protected]>
---
This patch is targeting libcrypto-next
lib/crypto/x86/blake2s-core.S | 3 --- 1 file changed, 3 deletions(-)
lib/crypto/x86/blake2s-core.S +0 -3
@@ -43,12 +43,10 @@ SIGMA2: .byte 15, 5, 4, 13, 10, 7, 3, 11, 12, 2, 0, 6, 9, 8, 1, 14 .byte 8, 7, 14, 11, 13, 15, 0, 12, 10, 4, 5, 6, 3, 2, 1, 9 .text SYM_FUNC_START(blake2s_compress_ssse3) - testq %rdx,%rdx - je .Lendofloop movdqu (%rdi),%xmm0 movdqu 0x10(%rdi),%xmm1 movdqa ROT16(%rip),%xmm12 movdqa ROR328(%rip),%xmm13 movdqu 0x20(%rdi),%xmm14
@@ -166,11 +164,10 @@ SYM_FUNC_START(blake2s_compress_ssse3) decq %rdx jnz .Lbeginofloop movdqu %xmm0,(%rdi) movdqu %xmm1,0x10(%rdi) movdqu %xmm14,0x20(%rdi) -.Lendofloop: RET SYM_FUNC_END(blake2s_compress_ssse3) SYM_FUNC_START(blake2s_compress_avx512) vmovdqu (%rdi),%xmm0
base-commit: 5a2a5e62a5216ba05d4481cf90d915f4de0bfde9
Signature · 1 line
2.51.2