OpenSSL 1.1.1-pre2
This commit is contained in:
@@ -413,7 +413,7 @@ __ecp_nistz256_add:
|
||||
! if a+b >= modulus, subtract modulus.
|
||||
!
|
||||
! But since comparison implies subtraction, we subtract
|
||||
! modulus and then add it back if subraction borrowed.
|
||||
! modulus and then add it back if subtraction borrowed.
|
||||
|
||||
subcc @acc[0],-1,@acc[0]
|
||||
subccc @acc[1],-1,@acc[1]
|
||||
@@ -1592,7 +1592,7 @@ ___
|
||||
########################################################################
|
||||
# Following subroutines are VIS3 counterparts of those above that
|
||||
# implement ones found in ecp_nistz256.c. Key difference is that they
|
||||
# use 128-bit muliplication and addition with 64-bit carry, and in order
|
||||
# use 128-bit multiplication and addition with 64-bit carry, and in order
|
||||
# to do that they perform conversion from uin32_t[8] to uint64_t[4] upon
|
||||
# entry and vice versa on return.
|
||||
#
|
||||
@@ -1874,7 +1874,7 @@ $code.=<<___ if ($i<3);
|
||||
ldx [$bp+8*($i+1)],$bi ! bp[$i+1]
|
||||
___
|
||||
$code.=<<___;
|
||||
addcc $acc1,$t0,$acc1 ! accumulate high parts of multiplication
|
||||
addcc $acc1,$t0,$acc1 ! accumulate high parts of multiplication
|
||||
sllx $acc0,32,$t0
|
||||
addxccc $acc2,$t1,$acc2
|
||||
srlx $acc0,32,$t1
|
||||
@@ -1977,7 +1977,7 @@ $code.=<<___;
|
||||
srlx $acc0,32,$t1
|
||||
addxccc $acc3,$t2,$acc2 ! +=acc[0]*0xFFFFFFFF00000001
|
||||
sub $acc0,$t0,$t2 ! acc0*0xFFFFFFFF00000001, low part
|
||||
addxc %g0,$t3,$acc3 ! cant't overflow
|
||||
addxc %g0,$t3,$acc3 ! can't overflow
|
||||
___
|
||||
}
|
||||
$code.=<<___;
|
||||
|
||||
Reference in New Issue
Block a user