aboutsummaryrefslogtreecommitdiffstats
path: root/checks/dolook2.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-07 15:26:10 +0000
committerlloyd <[email protected]>2008-11-07 15:26:10 +0000
commit955a5e4beddeb08cffbda3ed1aff1691fcc1d115 (patch)
tree1ad5c4b4e54f12a77b7f0030833bc85cef0e8edf /checks/dolook2.cpp
parent1bb18f29e5ec380f1b7c6b094e2eef4b94dee381 (diff)
Add AutoSeeded_RNG to benchmark output
Diffstat (limited to 'checks/dolook2.cpp')
-rw-r--r--checks/dolook2.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/checks/dolook2.cpp b/checks/dolook2.cpp
index ece8b261f..1e554bc0d 100644
--- a/checks/dolook2.cpp
+++ b/checks/dolook2.cpp
@@ -21,6 +21,10 @@
#include <botan/x931_rng.h>
#endif
+#if defined(BOTAN_HAS_AUTO_SEEDING_RNG)
+ #include <botan/auto_rng.h>
+#endif
+
#include "common.h"
using namespace Botan;
@@ -125,6 +129,11 @@ Filter* lookup_rng(const std::string& algname,
{
RandomNumberGenerator* prng = 0;
+#if defined(BOTAN_HAS_AUTO_SEEDING_RNG)
+ if(algname == "AutoSeeded")
+ prng = new AutoSeeded_RNG;
+#endif
+
#if defined(BOTAN_HAS_X931_RNG)
if(algname == "X9.31-RNG(TripleDES)")
prng = new ANSI_X931_RNG(get_block_cipher("TripleDES"),