~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to src/lib/entropy/darwin_secrandom/darwin_secrandom.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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