Botan  1.10.9
es_capi.h
Go to the documentation of this file.
1 /*
2 * Win32 CAPI EntropySource
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #ifndef BOTAN_ENTROPY_SRC_WIN32_CAPI_H__
9 #define BOTAN_ENTROPY_SRC_WIN32_CAPI_H__
10 
11 #include <botan/entropy_src.h>
12 #include <vector>
13 
14 namespace Botan {
15 
16 /**
17 * Win32 CAPI Entropy Source
18 */
20  {
21  public:
22  std::string name() const { return "Win32 CryptoGenRandom"; }
23 
24  void poll(Entropy_Accumulator& accum);
25 
26  /**
27  * Win32_Capi_Entropysource Constructor
28  * @param provs list of providers, separated by ':'
29  */
30  Win32_CAPI_EntropySource(const std::string& provs = "");
31  private:
32  std::vector<u64bit> prov_types;
33  };
34 
35 }
36 
37 #endif
void poll(Entropy_Accumulator &accum)
Definition: es_capi.cpp:56
Win32_CAPI_EntropySource(const std::string &provs="")
Definition: es_capi.cpp:77
std::string name() const
Definition: es_capi.h:22