diff options
author | lloyd <[email protected]> | 2008-11-04 04:05:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-04 04:05:59 +0000 |
commit | 074597d6f18925bd5adc46978c811080a53e1053 (patch) | |
tree | 2037e6da65eb0e8ecb68f976d605365a2188abe8 /src | |
parent | 0098d58419b99e522834404bcc6cdf4516902dfd (diff) |
Add fast_poll implementation
Diffstat (limited to 'src')
-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; |