diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-27 02:54:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 02:54:26 -0500 |
commit | 3db34abf2f9ec9c25b1140955fced60c8d40394c (patch) | |
tree | 96fb730bea5aeb85c6040c367fb5a5c800c4585b /bench1.cpp | |
parent | 1966d13617b30e63068b056be90c75f37e549339 (diff) | |
download | cryptopp-git-3db34abf2f9ec9c25b1140955fced60c8d40394c.tar.gz |
Add Power9 Random Number Generator support (GH #747, PR #748)
Diffstat (limited to 'bench1.cpp')
-rw-r--r-- | bench1.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -6,13 +6,19 @@ #include "validate.h"
#include "cpu.h"
-#include "drbg.h"
#include "factory.h"
#include "algparam.h"
#include "argnames.h"
#include "smartptr.h"
#include "stdcpp.h"
+#include "osrng.h"
+#include "drbg.h"
+#include "darn.h"
+#include "mersenne.h"
+#include "rdrand.h"
+#include "padlkrng.h"
+
#include <iostream>
#include <iomanip>
#include <sstream>
@@ -438,6 +444,10 @@ void Benchmark1(double t, double hertz) if (HasRDSEED())
BenchMarkByNameKeyLess<RandomNumberGenerator>("RDSEED");
#endif
+#if (CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64)
+ if (HasDARN())
+ BenchMarkByNameKeyLess<RandomNumberGenerator>("DARN");
+#endif
BenchMarkByNameKeyLess<RandomNumberGenerator>("AES/OFB RNG");
BenchMarkByNameKeyLess<NIST_DRBG>("Hash_DRBG(SHA1)");
BenchMarkByNameKeyLess<NIST_DRBG>("Hash_DRBG(SHA256)");
|