Botan 2.1.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

darwin_secrandom.h
Go to the documentation of this file.
1 /*
2 * Darwin SecRandomCopyBytes EntropySource
3 * (C) 2015 Daniel Seither (Kullo GmbH)
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
6 */
7
8 #ifndef BOTAN_ENTROPY_SRC_DARWIN_SECRANDOM_H__
9 #define BOTAN_ENTROPY_SRC_DARWIN_SECRANDOM_H__
10
11 #include <botan/entropy_src.h>
12
13 namespace Botan {
14
15 /**
16 * Entropy source using SecRandomCopyBytes from Darwin's Security.framework
17 */
18 class Darwin_SecRandom final : public Entropy_Source
19 {
20 public:
21 std::string name() const override { return "darwin_secrandom"; }
22
23 size_t poll(RandomNumberGenerator& rng) override;
24 };
25
26 }
27
28 #endif
Botan::RandomNumberGenerator
Definition: rng.h:25
Botan::Darwin_SecRandom
Definition: darwin_secrandom.h:18
Botan::Darwin_SecRandom::poll
size_t poll(RandomNumberGenerator &rng) override
Definition: darwin_secrandom.cpp:17
Botan::Darwin_SecRandom::name
std::string name() const override
Definition: darwin_secrandom.h:21
Botan
Definition: alg_id.cpp:13
Botan::Entropy_Source
Definition: entropy_src.h:25