From 8197c8a1cdb88228daff05a78f5a0958e4b9536c Mon Sep 17 00:00:00 2001 From: slaviber Date: Fri, 7 Oct 2016 22:56:22 +0300 Subject: The implicit constructor does not specify a provider. With no provider specified, Win32_CAPI_EntropySource::poll does not call ::CryptGenRandom and returns 0, leading to subsequent PRNG_Unseeded exceptions. --- src/lib/entropy/entropy_srcs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/entropy') diff --git a/src/lib/entropy/entropy_srcs.cpp b/src/lib/entropy/entropy_srcs.cpp index ad84709a5..5c232a56e 100644 --- a/src/lib/entropy/entropy_srcs.cpp +++ b/src/lib/entropy/entropy_srcs.cpp @@ -101,7 +101,7 @@ std::unique_ptr Entropy_Source::create(const std::string& name) if(name == "win32_cryptoapi") { #if defined(BOTAN_HAS_ENTROPY_SRC_CAPI) - return std::unique_ptr(new Win32_CAPI_EntropySource); + return std::unique_ptr(new Win32_CAPI_EntropySource("RSA_FULL")); #endif } -- cgit v1.2.3