blob: ee09c96eca221f63c69815706de727f752b34f64 (
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-2008 The Botan Project *
*************************************************/
#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
|