summaryrefslogtreecommitdiffstats
path: root/old/botan/build/botan/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'old/botan/build/botan/util.h')
-rw-r--r--old/botan/build/botan/util.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/old/botan/build/botan/util.h b/old/botan/build/botan/util.h
new file mode 100644
index 0000000..ac78673
--- /dev/null
+++ b/old/botan/build/botan/util.h
@@ -0,0 +1,39 @@
+/*
+* Utility Functions
+* (C) 1999-2007 Jack Lloyd
+*
+* Distributed under the terms of the Botan license
+*/
+
+#ifndef BOTAN_UTIL_H__
+#define BOTAN_UTIL_H__
+
+#include <botan/types.h>
+
+namespace Botan {
+
+/*
+* Time Access Functions
+*/
+BOTAN_DLL u64bit system_time();
+
+/*
+* Memory Locking Functions
+*/
+BOTAN_DLL bool lock_mem(void*, u32bit);
+BOTAN_DLL void unlock_mem(void*, u32bit);
+
+/*
+* Misc Utility Functions
+*/
+BOTAN_DLL u32bit round_up(u32bit, u32bit);
+BOTAN_DLL u32bit round_down(u32bit, u32bit);
+
+/*
+* Work Factor Estimates
+*/
+BOTAN_DLL u32bit dl_work_factor(u32bit);
+
+}
+
+#endif