aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/cryptoapi_rng/es_capi.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-11-04 04:05:59 +0000
committerlloyd <[email protected]>2008-11-04 04:05:59 +0000
commit074597d6f18925bd5adc46978c811080a53e1053 (patch)
tree2037e6da65eb0e8ecb68f976d605365a2188abe8 /src/entropy/cryptoapi_rng/es_capi.cpp
parent0098d58419b99e522834404bcc6cdf4516902dfd (diff)
Add fast_poll implementation
Diffstat (limited to 'src/entropy/cryptoapi_rng/es_capi.cpp')
-rw-r--r--src/entropy/cryptoapi_rng/es_capi.cpp13
1 files changed, 10 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: