summaryrefslogtreecommitdiffstats
path: root/crypto/nss_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/nss_util.cc')
-rw-r--r--crypto/nss_util.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/crypto/nss_util.cc b/crypto/nss_util.cc
index d13170c..8e378f4 100644
--- a/crypto/nss_util.cc
+++ b/crypto/nss_util.cc
@@ -682,8 +682,6 @@ class NSSInitSingleton {
// other threads from accessing until the constructor is done.
thread_checker_.DetachFromThread();
- DisableAESNIIfNeeded();
-
EnsureNSPRInit();
// We *must* have NSS >= 3.14.3.
@@ -845,22 +843,6 @@ class NSSInitSingleton {
}
#endif
- static void DisableAESNIIfNeeded() {
- if (NSS_VersionCheck("3.15") && !NSS_VersionCheck("3.15.4")) {
- // Some versions of NSS have a bug that causes AVX instructions to be
- // used without testing whether XSAVE is enabled by the operating system.
- // In order to work around this, we disable AES-NI in NSS when we find
- // that |has_avx()| is false (which includes the XSAVE test). See
- // https://bugzilla.mozilla.org/show_bug.cgi?id=940794
- base::CPU cpu;
-
- if (cpu.has_avx_hardware() && !cpu.has_avx()) {
- scoped_ptr<base::Environment> env(base::Environment::Create());
- env->SetVar("NSS_DISABLE_HW_AES", "1");
- }
- }
- }
-
bool tpm_token_enabled_for_nss_;
bool initializing_tpm_token_;
typedef std::vector<base::Closure> TPMReadyCallbackList;