]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ppc64: Fix SHA3_squeeze
authorRohan McLure <rmclure@linux.ibm.com>
Tue, 14 Nov 2023 03:14:33 +0000 (14:14 +1100)
committerTomas Mraz <tomas@openssl.org>
Wed, 15 Nov 2023 07:33:28 +0000 (08:33 +0100)
Fix the conditional on the 'next' parameter passed into SHA3_squeeze.

Reported-by: David Benjamin <davidben@davidben.net>
Signed-off-by: Rohan McLure <rmclure@linux.ibm.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22722)

crypto/sha/asm/keccak1600-ppc64.pl

index 3f8ba817f8d51420af4a9e935b45313ccb37a2a6..fe7d6db20e43d26f49dbb39d16de35c361640c01 100755 (executable)
@@ -668,8 +668,8 @@ SHA3_squeeze:
        subi    $out,r4,1               ; prepare for stbu
        mr      $len,r5
        mr      $bsz,r6
-       ${UCMP}i r7,1                   ; r7 = 'next' argument
-       blt     .Lnext_block
+       ${UCMP}i r7,0                   ; r7 = 'next' argument
+       bne     .Lnext_block
        b       .Loop_squeeze
 
 .align 4