summaryrefslogtreecommitdiffstats
path: root/crypto/bn/asm/rsaz-x86_64.pl
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-01-25 23:25:40 +0100
committerMatt Caswell <matt@openssl.org>2016-03-01 14:34:22 +0100
commitd6d422e1ec48fac1c6194ab672e320281a214a32 (patch)
treee2dd1578acbc231d5e5510e0795600485193a967 /crypto/bn/asm/rsaz-x86_64.pl
parentbn/asm/rsax-x86_64.pl: constant-time gather procedure. (diff)
downloadopenssl-d6d422e1ec48fac1c6194ab672e320281a214a32.tar.xz
openssl-d6d422e1ec48fac1c6194ab672e320281a214a32.zip
bn/asm/rsaz-avx2.pl: constant-time gather procedure.
Performance penalty is 2%. CVE-2016-0702 Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/bn/asm/rsaz-x86_64.pl')
-rwxr-xr-xcrypto/bn/asm/rsaz-x86_64.pl22
1 files changed, 11 insertions, 11 deletions
diff --git a/crypto/bn/asm/rsaz-x86_64.pl b/crypto/bn/asm/rsaz-x86_64.pl
index d1ea454d46..3290054f2e 100755
--- a/crypto/bn/asm/rsaz-x86_64.pl
+++ b/crypto/bn/asm/rsaz-x86_64.pl
@@ -2332,17 +2332,17 @@ se_handler:
.rva .Lmul_by_one_body,.Lmul_by_one_epilogue # HandlerData[]
.LSEH_info_rsaz_512_gather4:
.byte 0x01,0x46,0x16,0x00
- .byte 0x46,0xf8,0x09,0x00 #vmovaps 0x90(rsp),xmm15
- .byte 0x3d,0xe8,0x08,0x00 #vmovaps 0x80(rsp),xmm14
- .byte 0x34,0xd8,0x07,0x00 #vmovaps 0x70(rsp),xmm13
- .byte 0x2e,0xc8,0x06,0x00 #vmovaps 0x60(rsp),xmm12
- .byte 0x28,0xb8,0x05,0x00 #vmovaps 0x50(rsp),xmm11
- .byte 0x22,0xa8,0x04,0x00 #vmovaps 0x40(rsp),xmm10
- .byte 0x1c,0x98,0x03,0x00 #vmovaps 0x30(rsp),xmm9
- .byte 0x16,0x88,0x02,0x00 #vmovaps 0x20(rsp),xmm8
- .byte 0x10,0x78,0x01,0x00 #vmovaps 0x10(rsp),xmm7
- .byte 0x0b,0x68,0x00,0x00 #vmovaps 0x00(rsp),xmm6
- .byte 0x07,0x01,0x15,0x00 #sub rsp,0xa8
+ .byte 0x46,0xf8,0x09,0x00 # vmovaps 0x90(rsp),xmm15
+ .byte 0x3d,0xe8,0x08,0x00 # vmovaps 0x80(rsp),xmm14
+ .byte 0x34,0xd8,0x07,0x00 # vmovaps 0x70(rsp),xmm13
+ .byte 0x2e,0xc8,0x06,0x00 # vmovaps 0x60(rsp),xmm12
+ .byte 0x28,0xb8,0x05,0x00 # vmovaps 0x50(rsp),xmm11
+ .byte 0x22,0xa8,0x04,0x00 # vmovaps 0x40(rsp),xmm10
+ .byte 0x1c,0x98,0x03,0x00 # vmovaps 0x30(rsp),xmm9
+ .byte 0x16,0x88,0x02,0x00 # vmovaps 0x20(rsp),xmm8
+ .byte 0x10,0x78,0x01,0x00 # vmovaps 0x10(rsp),xmm7
+ .byte 0x0b,0x68,0x00,0x00 # vmovaps 0x00(rsp),xmm6
+ .byte 0x07,0x01,0x15,0x00 # sub rsp,0xa8
___
}