diff options
Diffstat (limited to 'src/lib/libcrypto/ec/asm')
| -rw-r--r-- | src/lib/libcrypto/ec/asm/ecp_nistz256-armv4.pl | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/ec/asm/ecp_nistz256-sparcv9.pl | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ec/asm/ecp_nistz256-armv4.pl b/src/lib/libcrypto/ec/asm/ecp_nistz256-armv4.pl index f3205d673a..9e6c65905f 100644 --- a/src/lib/libcrypto/ec/asm/ecp_nistz256-armv4.pl +++ b/src/lib/libcrypto/ec/asm/ecp_nistz256-armv4.pl | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #! /usr/bin/env perl | 1 | #! /usr/bin/env perl |
| 2 | # $OpenBSD: ecp_nistz256-armv4.pl,v 1.1 2016/11/04 17:33:19 miod Exp $ | 2 | # $OpenBSD: ecp_nistz256-armv4.pl,v 1.2 2022/12/26 07:18:51 jmc Exp $ |
| 3 | # | 3 | # |
| 4 | # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. | 4 | # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. |
| 5 | # | 5 | # |
| @@ -179,7 +179,7 @@ __ecp_nistz256_add: | |||
| 179 | @ if a+b >= modulus, subtract modulus. | 179 | @ if a+b >= modulus, subtract modulus. |
| 180 | @ | 180 | @ |
| 181 | @ But since comparison implies subtraction, we subtract | 181 | @ But since comparison implies subtraction, we subtract |
| 182 | @ modulus and then add it back if subraction borrowed. | 182 | @ modulus and then add it back if subtraction borrowed. |
| 183 | 183 | ||
| 184 | subs $a0,$a0,#-1 | 184 | subs $a0,$a0,#-1 |
| 185 | sbcs $a1,$a1,#-1 | 185 | sbcs $a1,$a1,#-1 |
| @@ -1090,7 +1090,7 @@ __ecp_nistz256_add_self: | |||
| 1090 | @ if a+b >= modulus, subtract modulus. | 1090 | @ if a+b >= modulus, subtract modulus. |
| 1091 | @ | 1091 | @ |
| 1092 | @ But since comparison implies subtraction, we subtract | 1092 | @ But since comparison implies subtraction, we subtract |
| 1093 | @ modulus and then add it back if subraction borrowed. | 1093 | @ modulus and then add it back if subtraction borrowed. |
| 1094 | 1094 | ||
| 1095 | subs $a0,$a0,#-1 | 1095 | subs $a0,$a0,#-1 |
| 1096 | sbcs $a1,$a1,#-1 | 1096 | sbcs $a1,$a1,#-1 |
diff --git a/src/lib/libcrypto/ec/asm/ecp_nistz256-sparcv9.pl b/src/lib/libcrypto/ec/asm/ecp_nistz256-sparcv9.pl index 044eb457b6..49460fefdc 100644 --- a/src/lib/libcrypto/ec/asm/ecp_nistz256-sparcv9.pl +++ b/src/lib/libcrypto/ec/asm/ecp_nistz256-sparcv9.pl | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | #! /usr/bin/env perl | 1 | #! /usr/bin/env perl |
| 2 | # $OpenBSD: ecp_nistz256-sparcv9.pl,v 1.1 2016/11/04 17:33:20 miod Exp $ | 2 | # $OpenBSD: ecp_nistz256-sparcv9.pl,v 1.2 2022/12/26 07:18:51 jmc Exp $ |
| 3 | # | 3 | # |
| 4 | # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. | 4 | # Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. |
| 5 | # | 5 | # |
| @@ -350,7 +350,7 @@ __ecp_nistz256_add: | |||
| 350 | ! if a+b >= modulus, subtract modulus. | 350 | ! if a+b >= modulus, subtract modulus. |
| 351 | ! | 351 | ! |
| 352 | ! But since comparison implies subtraction, we subtract | 352 | ! But since comparison implies subtraction, we subtract |
| 353 | ! modulus and then add it back if subraction borrowed. | 353 | ! modulus and then add it back if subtraction borrowed. |
| 354 | 354 | ||
| 355 | subcc @acc[0],-1,@acc[0] | 355 | subcc @acc[0],-1,@acc[0] |
| 356 | subccc @acc[1],-1,@acc[1] | 356 | subccc @acc[1],-1,@acc[1] |
| @@ -1805,7 +1805,7 @@ $code.=<<___; | |||
| 1805 | srlx $acc0,32,$t1 | 1805 | srlx $acc0,32,$t1 |
| 1806 | addxccc $acc3,$t2,$acc2 ! +=acc[0]*0xFFFFFFFF00000001 | 1806 | addxccc $acc3,$t2,$acc2 ! +=acc[0]*0xFFFFFFFF00000001 |
| 1807 | sub $acc0,$t0,$t2 ! acc0*0xFFFFFFFF00000001, low part | 1807 | sub $acc0,$t0,$t2 ! acc0*0xFFFFFFFF00000001, low part |
| 1808 | addxc %g0,$t3,$acc3 ! cant't overflow | 1808 | addxc %g0,$t3,$acc3 ! can't overflow |
| 1809 | ___ | 1809 | ___ |
| 1810 | } | 1810 | } |
| 1811 | $code.=<<___; | 1811 | $code.=<<___; |
