diff options
author | Daniel Neus <[email protected]> | 2015-12-18 22:50:39 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2015-12-18 22:50:39 +0100 |
commit | 3ebee37e0303d0a74c262153553d9905c847e5a9 (patch) | |
tree | a9e61c4b86ee7f7a6edf82a10f22b472d1584f98 /src/lib/entropy/entropy_srcs.cpp | |
parent | 56af160c9d4df53467ce742e2ba9b9f512fb7c83 (diff) |
add support for Intel RdSeed
Diffstat (limited to 'src/lib/entropy/entropy_srcs.cpp')
-rw-r--r-- | src/lib/entropy/entropy_srcs.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/entropy/entropy_srcs.cpp b/src/lib/entropy/entropy_srcs.cpp index cbf13d488..a5dc0a819 100644 --- a/src/lib/entropy/entropy_srcs.cpp +++ b/src/lib/entropy/entropy_srcs.cpp @@ -15,6 +15,10 @@ #include <botan/internal/rdrand.h> #endif +#if defined(BOTAN_HAS_ENTROPY_SRC_RDSEED) + #include <botan/internal/rdseed.h> +#endif + #if defined(BOTAN_HAS_ENTROPY_SRC_DEV_RANDOM) #include <botan/internal/dev_random.h> #endif @@ -64,6 +68,13 @@ std::unique_ptr<Entropy_Source> Entropy_Source::create(const std::string& name) return std::unique_ptr<Entropy_Source>(new Intel_Rdrand); #endif } + + if(name == "rdseed") + { +#if defined(BOTAN_HAS_ENTROPY_SRC_RDSEED) + return std::unique_ptr<Entropy_Source>(new Intel_Rdseed); +#endif + } if(name == "proc_info") { |