summaryrefslogtreecommitdiff
path: root/validat1.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-05-17 16:21:20 -0400
committerJeffrey Walton <noloader@gmail.com>2017-05-17 16:21:20 -0400
commit1b1c32d7cf883078e0da02aaa38981f81c639cf3 (patch)
treeb41bc9a5797f61e1cce6d3fc8a93d88c4b371710 /validat1.cpp
parent03a6a8fb7328d619f84292bf96b81df02aaa121d (diff)
downloadcryptopp-git-1b1c32d7cf883078e0da02aaa38981f81c639cf3.tar.gz
Build RDRAND for all platofrms (Issue 419, PR 424)
We have not been able to determine a reliable way to detect cpu's and platforms with Cmake. We are side stepping the Cmake problem by building rdrand.cpp all the time. If its not avilable for a cpu or platform, then RDRAND or RDSEED throw an exception.
Diffstat (limited to 'validat1.cpp')
-rw-r--r--validat1.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/validat1.cpp b/validat1.cpp
index 1157d60e..fa43cc92 100644
--- a/validat1.cpp
+++ b/validat1.cpp
@@ -79,10 +79,8 @@ bool ValidateAll(bool thorough)
#if defined(CRYPTOPP_EXTENDED_VALIDATION)
pass=TestMersenne() && pass;
#endif
-#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
pass=TestRDRAND() && pass;
pass=TestRDSEED() && pass;
-#endif
#if defined(CRYPTOPP_EXTENDED_VALIDATION)
// http://github.com/weidai11/cryptopp/issues/92
@@ -927,7 +925,6 @@ bool TestMersenne()
}
#endif
-#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
bool TestRDRAND()
{
std::cout << "\nTesting RDRAND generator...\n\n";
@@ -1030,9 +1027,7 @@ bool TestRDRAND()
std::cout.flush();
return pass;
}
-#endif
-#if (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64)
bool TestRDSEED()
{
std::cout << "\nTesting RDSEED generator...\n\n";
@@ -1135,7 +1130,6 @@ bool TestRDSEED()
std::cout.flush();
return pass;
}
-#endif
bool ValidateHashDRBG()
{