From 955a5e4beddeb08cffbda3ed1aff1691fcc1d115 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 7 Nov 2008 15:26:10 +0000 Subject: Add AutoSeeded_RNG to benchmark output --- checks/dolook2.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'checks/dolook2.cpp') 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 #endif +#if defined(BOTAN_HAS_AUTO_SEEDING_RNG) + #include +#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"), -- cgit v1.2.3