12345678910111213141516171819202122232425(**************************************************************************)(* *)(* Copyright 2016-2018 OCamlPro *)(* *)(* All rights reserved. This file is distributed under the terms of the *)(* GNU Lesser General Public License version 2.1, with the special *)(* exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)letsha1_filefile=Sha1.to_hex(Sha1.filefile)letsha256_filefile=Sha256.to_hex(Sha256.filefile)letsha512_filefile=Sha512.to_hex(Sha512.filefile)lethash_file=function|`SHA1->sha1_file|`SHA256->sha256_file|`SHA512->sha512_fileletsha1_stringstr=Sha1.to_hex(Sha1.stringstr)letsha256_stringstr=Sha256.to_hex(Sha256.stringstr)letsha512_stringstr=Sha512.to_hex(Sha512.stringstr)lethash_string=function|`SHA1->sha1_string|`SHA256->sha256_string|`SHA512->sha512_string