monotone

monotone Mtn Source Tree

Root/botan/rng.h

1/*************************************************
2* Global RNG Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_GLOBAL_RNG_H__
7#define BOTAN_GLOBAL_RNG_H__
8
9#include <botan/base.h>
10
11namespace Botan {
12
13/*************************************************
14* RNG Access and Seeding Functions *
15*************************************************/
16namespace Global_RNG {
17
18void randomize(byte[], u32bit, RNG_Quality = SessionKey);
19byte random(RNG_Quality = SessionKey);
20
21void add_entropy(const byte[], u32bit);
22void add_entropy(EntropySource&, bool = true);
23
24u32bit seed(bool = true, u32bit = 256);
25
26void add_es(EntropySource*, bool = true);
27
28}
29
30/*************************************************
31* RNG Control Functions *
32*************************************************/
33namespace Init {
34
35void set_global_rngs(RandomNumberGenerator*, RandomNumberGenerator*);
36void init_rng_subsystem();
37void shutdown_rng_subsystem();
38
39}
40
41}
42
43#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status