diff options
author | lloyd <[email protected]> | 2008-11-07 15:26:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-07 15:26:10 +0000 |
commit | 955a5e4beddeb08cffbda3ed1aff1691fcc1d115 (patch) | |
tree | 1ad5c4b4e54f12a77b7f0030833bc85cef0e8edf /checks/dolook2.cpp | |
parent | 1bb18f29e5ec380f1b7c6b094e2eef4b94dee381 (diff) |
Add AutoSeeded_RNG to benchmark output
Diffstat (limited to 'checks/dolook2.cpp')
-rw-r--r-- | checks/dolook2.cpp | 9 |
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"), |