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

« back to all changes in this revision

Viewing changes to include/util.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
 
* Utility Functions Header File                  *
3
 
* (C) 1999-2007 The Botan Project                *
4
 
*************************************************/
5
 
 
6
 
#ifndef BOTAN_UTIL_H__
7
 
#define BOTAN_UTIL_H__
8
 
 
9
 
#include <botan/types.h>
10
 
 
11
 
namespace Botan {
12
 
 
13
 
/*************************************************
14
 
* Timer Access Functions                         *
15
 
*************************************************/
16
 
u64bit system_time();
17
 
u64bit system_clock();
18
 
 
19
 
/*************************************************
20
 
* Memory Locking Functions                       *
21
 
*************************************************/
22
 
void lock_mem(void*, u32bit);
23
 
void unlock_mem(void*, u32bit);
24
 
 
25
 
/*************************************************
26
 
* Misc Utility Functions                         *
27
 
*************************************************/
28
 
u32bit round_up(u32bit, u32bit);
29
 
u32bit round_down(u32bit, u32bit);
30
 
u64bit combine_timers(u32bit, u32bit, u32bit);
31
 
 
32
 
/*************************************************
33
 
* Work Factor Estimates                          *
34
 
*************************************************/
35
 
u32bit entropy_estimate(const byte[], u32bit);
36
 
u32bit dl_work_factor(u32bit);
37
 
 
38
 
}
39
 
 
40
 
#endif