/src/botan/build/include/botan/internal/rdrand.h
Line  | Count  | Source (jump to first uncovered line)  | 
1  |  | /*  | 
2  |  | * Entropy Source Using Intel's rdrand instruction  | 
3  |  | * (C) 2012 Jack Lloyd  | 
4  |  | *  | 
5  |  | * Botan is released under the Simplified BSD License (see license.txt)  | 
6  |  | */  | 
7  |  |  | 
8  |  | #ifndef BOTAN_ENTROPY_SRC_RDRAND_H_  | 
9  |  | #define BOTAN_ENTROPY_SRC_RDRAND_H_  | 
10  |  |  | 
11  |  | #include <botan/entropy_src.h>  | 
12  |  |  | 
13  |  | namespace Botan { | 
14  |  |  | 
15  |  | /**  | 
16  |  | * Entropy source using the rdrand instruction first introduced on  | 
17  |  | * Intel's Ivy Bridge architecture.  | 
18  |  | */  | 
19  |  | class Intel_Rdrand final : public Entropy_Source  | 
20  |  |    { | 
21  |  |    public:  | 
22  | 0  |       std::string name() const override { return "rdrand"; } | 
23  |  |       size_t poll(RandomNumberGenerator& rng) override;  | 
24  |  |    };  | 
25  |  |  | 
26  |  | }  | 
27  |  |  | 
28  |  | #endif  |