diff options
Diffstat (limited to 'lib/interop.ml')
| -rw-r--r-- | lib/interop.ml | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/interop.ml b/lib/interop.ml deleted file mode 100644 index 8cbc05c..0000000 --- a/lib/interop.ml +++ /dev/null @@ -1,11 +0,0 @@ -open Ctypes - -module Sha256 = struct - type t = string - - let compute_hash content : t = - let size_with_null_terminator = C.Types.hash_size + 1 in - let buf = Ctypes.allocate_n char ~count:size_with_null_terminator in - let () = C.Functions.compute_hash buf (Bytes.to_string content) in - Ctypes.coerce (ptr char) Ctypes.string buf -end |
