Botan 1.10.17

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 */
19 class Win32_CAPI_EntropySource : public EntropySource
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
Botan::Win32_CAPI_EntropySource
Definition: es_capi.h:19
Botan::Win32_CAPI_EntropySource::name
std::string name() const
Definition: es_capi.h:22
Botan::Win32_CAPI_EntropySource::poll
void poll(Entropy_Accumulator &accum)
Definition: es_capi.cpp:56
Botan::EntropySource
Definition: entropy_src.h:122
Botan::Win32_CAPI_EntropySource::Win32_CAPI_EntropySource
Win32_CAPI_EntropySource(const std::string &provs="")
Definition: es_capi.cpp:77
Botan
Definition: algo_base.h:14
Botan::Entropy_Accumulator
Definition: entropy_src.h:19