Debian Codegraph @

vendor/opam/src/core/opamSHA.mli

raw
1 (**************************************************************************)
2 (* *)
3 (* Copyright 2016-2017 OCamlPro *)
4 (* *)
5 (* All rights reserved. This file is distributed under the terms of the *)
6 (* GNU Lesser General Public License version 2.1, with the special *)
7 (* exception on linking described in the file LICENSE. *)
8 (* *)
9 (**************************************************************************)
10
11 (** Pure OCaml implementation of SHA256/512 hashing functions. The hash is
12 returned as an hex string. *)
13
14 val sha1_file: string -> string
15
16 val sha256_file: string -> string
17
18 val sha512_file: string -> string
19
20 val hash_file: [< `SHA1 | `SHA256 | `SHA512 ] -> string -> string
21
22
23 val sha1_string: string -> string
24
25 val sha256_string: string -> string
26
27 val sha512_string: string -> string
28
29 val hash_string: [< `SHA1 | `SHA256 | `SHA512 ] -> string -> string