Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
openssl: disable HT sidechannel attack mitigation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
piscisaureus committed Dec 20, 2012
1 parent aeae22c commit 1d97db5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deps/openssl/openssl/crypto/aes/asm/aes-586.pl
Expand Up @@ -2054,8 +2054,8 @@ ()
&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"));
Expand Down
4 changes: 2 additions & 2 deletions deps/openssl/openssl/crypto/aes/asm/aes-x86_64.pl
Expand Up @@ -1683,8 +1683,8 @@ ()
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
Expand Down

0 comments on commit 1d97db5

Please sign in to comment.