aboutsummaryrefslogtreecommitdiffstats
path: root/src/ocaml/botan.mli
diff options
context:
space:
mode:
Diffstat (limited to 'src/ocaml/botan.mli')
-rw-r--r--src/ocaml/botan.mli35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ocaml/botan.mli b/src/ocaml/botan.mli
new file mode 100644
index 000000000..ec7e71dfe
--- /dev/null
+++ b/src/ocaml/botan.mli
@@ -0,0 +1,35 @@
+(*
+* OCaml binding for botan (http://botan.randombit.net)
+* (C) 2015 Jack Lloyd
+*
+* Botan is released under the Simplified BSD License (see license.txt)
+*)
+
+
+module Botan : sig
+ val version : (int * int * int)
+ val version_string : string
+ val version_date : int
+ val ffi_version : int
+
+ val hex_encode : string -> string
+
+ module RNG : sig
+ type t
+ val create : string -> t
+ val destroy: t -> unit (* TODO: GC finalize instead *)
+ val generate : t -> int -> string
+ val reseed : t -> int -> unit
+ end
+
+ module Hash : sig
+ type t
+ val create : string -> t
+ val destroy: t -> unit (* TODO: GC finalize instead *)
+ val output_length : t -> int
+ val clear : t -> unit
+ val update : t -> string -> unit
+ val final: t -> string
+ end
+
+end