mirror of https://github.com/openssl/openssl
SHA3_squeeze(): The next argument is int
Amend the assembler so it uses only 32bit value. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/22750)
This commit is contained in:
parent
69d4d5282f
commit
f58d39fb9f
|
@ -483,7 +483,7 @@ SHA3_squeeze:
|
|||
mov $out,x1
|
||||
mov $len,x2
|
||||
mov $bsz,x3
|
||||
cmp x4, #0 // x4 = 'next' argument
|
||||
cmp w4, #0 // w4 = 'next' argument
|
||||
bne .Lnext_block
|
||||
|
||||
.Loop_squeeze:
|
||||
|
|
|
@ -668,7 +668,7 @@ SHA3_squeeze:
|
|||
subi $out,r4,1 ; prepare for stbu
|
||||
mr $len,r5
|
||||
mr $bsz,r6
|
||||
${UCMP}i r7,0 ; r7 = 'next' argument
|
||||
cmplwi r7,0 ; r7 = 'next' argument
|
||||
bne .Lnext_block
|
||||
b .Loop_squeeze
|
||||
|
||||
|
|
|
@ -524,7 +524,7 @@ SHA3_squeeze:
|
|||
mov %rsi,$out
|
||||
mov %rdx,$len
|
||||
mov %rcx,$bsz
|
||||
bt \$0,$next
|
||||
bt \$0,${next}d
|
||||
jc .Lnext_block
|
||||
jmp .Loop_squeeze
|
||||
|
||||
|
|
Loading…
Reference in New Issue