openssl: disable HT sidechannel attack mitigation

It used to be off before. It's extremely unlikely that such an attack
would be a viable attack against node. And it makes AES much slower.
This commit is contained in:
Bert Belder authored and isaacs committed 2012-09-25 08:51:03 -07:00
1 parent d2fb507556
commit 66638a4435
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -2054,8 +2054,8 @@ my $mark=&DWP(76+240,"esp"); # copy of aes_key->rounds
&test ($s2,15);
&jnz (&label("slow_way"));
if (!$x86only) {
&bt (&DWP(0,$s0),28); # check for hyper-threading bit
&jc (&label("slow_way"));
#&bt (&DWP(0,$s0),28); # check for hyper-threading bit
#&jc (&label("slow_way"));
}
# pre-allocate aligned stack frame...
&lea ($acc,&DWP(-80-244,"esp"));
+2 -2
View File
@@ -1674,8 +1674,8 @@ AES_cbc_encrypt:
jb .Lcbc_slow_prologue
test \$15,%rdx
jnz .Lcbc_slow_prologue
bt \$28,%r10d
jc .Lcbc_slow_prologue
#bt \$28,%r10d
#jc .Lcbc_slow_prologue
# allocate aligned stack frame...
lea -88-248(%rsp),$key