~ubuntu-branches/debian/sid/botan/sid

« back to all changes in this revision

Viewing changes to include/rng.h

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2018-03-01 22:23:25 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20180301222325-7p7vc45gu3hta34d
Tags: 2.4.0-2
* Don't remove .doctrees from the manual if it doesn't exist.
* Don't specify parallel to debhelper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*************************************************
2
 
* Global RNG Header File                         *
3
 
* (C) 1999-2007 The Botan Project                *
4
 
*************************************************/
5
 
 
6
 
#ifndef BOTAN_GLOBAL_RNG_H__
7
 
#define BOTAN_GLOBAL_RNG_H__
8
 
 
9
 
#include <botan/base.h>
10
 
 
11
 
namespace Botan {
12
 
 
13
 
/*************************************************
14
 
* RNG Access and Seeding Functions               *
15
 
*************************************************/
16
 
namespace Global_RNG {
17
 
 
18
 
void randomize(byte[], u32bit);
19
 
byte random();
20
 
 
21
 
void add_entropy(const byte[], u32bit);
22
 
void add_entropy(EntropySource&, bool = true);
23
 
 
24
 
u32bit seed(bool = true, u32bit = 256);
25
 
 
26
 
void add_es(EntropySource*, bool = true);
27
 
 
28
 
}
29
 
 
30
 
}
31
 
 
32
 
#endif