File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,7 @@ open Defaults
19
19
and also because almost no one uses it — and I like to be contrarian,
20
20
at least when it doesn't harm anyone else. ;)
21
21
*)
22
- let hash_sum s =
23
- let ctx = Digestif.BLAKE2S. empty in
24
- let ctx = Digestif.BLAKE2S. feed_string ctx s in
25
- Digestif.BLAKE2S. get ctx |> Digestif.BLAKE2S. to_hex
22
+ let hash_sum = Hash. blake2s
26
23
27
24
let read_file path =
28
25
try Soup. read_file path
Original file line number Diff line number Diff line change
1
+ (* Simple wrappers for hash functions from Digestif
2
+ that just take a string and return a hex digest.
3
+ *)
4
+
5
+ let blake2s s =
6
+ let ctx = Digestif.BLAKE2S. empty in
7
+ let ctx = Digestif.BLAKE2S. feed_string ctx s in
8
+ Digestif.BLAKE2S. get ctx |> Digestif.BLAKE2S. to_hex
9
+
10
+
11
+
You can’t perform that action at this time.
0 commit comments