From 5df353beff71ba1f1e84cd691ef3edf892aa5311 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 2 Jun 2014 15:08:38 +0000 Subject: A few months back there was a big community fuss regarding direct-use of the intel RDRAND instruction. Consensus was RDRAND should probably only be used as an additional source of entropy in a mixer. Guess which library bends over backwards to provide easy access to RDRAND? Yep. Guess which applications are using this support? Not even one... but still, this is being placed as a trap for someone. Send this support straight to the abyss. ok kettenis --- src/lib/libcrypto/x86cpuid.pl | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/lib/libcrypto/x86cpuid.pl') diff --git a/src/lib/libcrypto/x86cpuid.pl b/src/lib/libcrypto/x86cpuid.pl index 169036d53d..47df147a83 100644 --- a/src/lib/libcrypto/x86cpuid.pl +++ b/src/lib/libcrypto/x86cpuid.pl @@ -257,18 +257,6 @@ for (@ARGV) { $sse2=1 if (/-DOPENSSL_IA32_SSE2/); } &ret (); &function_end_B("OPENSSL_atomic_add"); -&function_begin_B("OPENSSL_ia32_rdrand"); - &mov ("ecx",8); -&set_label("loop"); - &rdrand ("eax"); - &jc (&label("break")); - &loop (&label("loop")); -&set_label("break"); - &cmp ("eax",0); - &cmove ("eax","ecx"); - &ret (); -&function_end_B("OPENSSL_ia32_rdrand"); - &initseg("OPENSSL_cpuid_setup"); &asm_finish(); -- cgit v1.2.3-55-g6feb