Botan  1.11.15
src/lib/entropy/rdrand/rdrand.h
Go to the documentation of this file.
00001 /*
00002 * Entropy Source Using Intel's rdrand instruction
00003 * (C) 2012 Jack Lloyd
00004 *
00005 * Botan is released under the Simplified BSD License (see license.txt)
00006 */
00007 
00008 #ifndef BOTAN_ENTROPY_SRC_RDRAND_H__
00009 #define BOTAN_ENTROPY_SRC_RDRAND_H__
00010 
00011 #include <botan/entropy_src.h>
00012 
00013 namespace Botan {
00014 
00015 /**
00016 * Entropy source using the rdrand instruction first introduced on
00017 * Intel's Ivy Bridge architecture.
00018 */
00019 class Intel_Rdrand : public EntropySource
00020    {
00021    public:
00022       std::string name() const { return "Intel Rdrand"; }
00023       void poll(Entropy_Accumulator& accum);
00024    };
00025 
00026 }
00027 
00028 #endif