diff options
-rw-r--r-- | src/entropy/cryptoapi_rng/es_capi.cpp | 13 | ||||
-rw-r--r-- | src/entropy/cryptoapi_rng/es_capi.h | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/entropy/cryptoapi_rng/es_capi.cpp b/src/entropy/cryptoapi_rng/es_capi.cpp index 7d1e0e753..ca0e1b95e 100644 --- a/src/entropy/cryptoapi_rng/es_capi.cpp +++ b/src/entropy/cryptoapi_rng/es_capi.cpp @@ -10,12 +10,19 @@ namespace Botan { -/************************************************* -* Gather Entropy from Win32 CAPI * -*************************************************/ +/** +* Gather Entropy from Win32 CAPI +*/ u32bit Win32_CAPI_EntropySource::slow_poll(byte output[], u32bit length) { + return fast_poll(output, length); + } +/** +* Gather Entropy from Win32 CAPI +*/ +u32bit Win32_CAPI_EntropySource::fast_poll(byte output[], u32bit length) + { class CSP_Handle { public: diff --git a/src/entropy/cryptoapi_rng/es_capi.h b/src/entropy/cryptoapi_rng/es_capi.h index c8f83427c..b8bbb7507 100644 --- a/src/entropy/cryptoapi_rng/es_capi.h +++ b/src/entropy/cryptoapi_rng/es_capi.h @@ -19,7 +19,9 @@ class BOTAN_DLL Win32_CAPI_EntropySource : public EntropySource public: std::string name() const { return "Win32 CryptoGenRandom"; } + u32bit fast_poll(byte[], u32bit); u32bit slow_poll(byte[], u32bit); + Win32_CAPI_EntropySource(const std::string& = ""); private: std::vector<u64bit> prov_types; |