blob: fee9c088f593630d29b47c8384bf8b9bd57dd679 (
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
27
28
29
30
31
32
|
/*************************************************
* Global RNG Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_GLOBAL_RNG_H__
#define BOTAN_GLOBAL_RNG_H__
#include <botan/base.h>
namespace Botan {
/*************************************************
* RNG Access and Seeding Functions *
*************************************************/
namespace Global_RNG {
void randomize(byte[], u32bit);
byte random();
void add_entropy(const byte[], u32bit);
void add_entropy(EntropySource&, bool = true);
u32bit seed(bool = true, u32bit = 256);
void add_es(EntropySource*, bool = true);
}
}
#endif
|