diff options
author | Andy Polyakov <appro@openssl.org> | 2018-07-18 15:14:44 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2018-07-22 15:21:44 +0200 |
commit | 87a75b3e5c04a1696208c279f32d1114b862cfed (patch) | |
tree | 1db8208d7c244c4bc582061644e2b55518dcfb2b /crypto/ec/asm/ecp_nistz256-x86.pl | |
parent | f40e0a342cbca8bb71d0fe3f19e1b4bfd853aff1 (diff) |
ec/asm/ecp_nistz256-{!x86_64}.pl: fix scatter_w7 function.
The ecp_nistz256_scatter_w7 function is called when application
attempts to use custom generator, i.e. rarely. Even though non-x86_64
versions were wrong, it didn't affect point operations, they were just
not as fast as expected.
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6738)
Diffstat (limited to 'crypto/ec/asm/ecp_nistz256-x86.pl')
-rwxr-xr-x | crypto/ec/asm/ecp_nistz256-x86.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ec/asm/ecp_nistz256-x86.pl b/crypto/ec/asm/ecp_nistz256-x86.pl index a89a9f93bc..8fdd76b84f 100755 --- a/crypto/ec/asm/ecp_nistz256-x86.pl +++ b/crypto/ec/asm/ecp_nistz256-x86.pl @@ -1179,7 +1179,7 @@ for ($i=0;$i<7;$i++) { &mov ("esi",&wparam(1)); &mov ("ebp",&wparam(2)); - &lea ("edi",&DWP(-1,"edi","ebp")); + &lea ("edi",&DWP(0,"edi","ebp")); &mov ("ebp",64/4); &set_label("scatter_w7_loop"); &mov ("eax",&DWP(0,"esi")); |