blob: 4ee24ce4a37a1768eb9c2e06bb4594001d366383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/*************************************************
* EntropySource Header File *
* (C) 2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_ENTROPY_SOURCE_BASE_H__
#define BOTAN_ENTROPY_SOURCE_BASE_H__
#include <botan/types.h>
namespace Botan {
/**
* Abstract interface to a source of (hopefully unpredictable) system entropy
*/
class BOTAN_DLL EntropySource
{
public:
virtual u32bit slow_poll(byte buf[], u32bit len) = 0;
virtual u32bit fast_poll(byte buf[], u32bit len) = 0;
virtual ~EntropySource() {}
};
}
#endif
|