From d3708bb28adcd0220142f1890ab96bfd2df637d3 Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Sat, 4 Apr 2026 17:10:32 -0300 Subject: remove interop with c --- lib/interop.ml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 lib/interop.ml (limited to 'lib/interop.ml') 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 -- cgit v1.2.3