OpamHashval all_kinds : kind listThe list of all the possible values of kind
val contents : t -> stringThe value of the hash, as a string of hexadecimal characters
val string_of_kind : kind -> stringval md5 : string -> tval sha256 : string -> tval sha512 : string -> tinclude OpamStd.ABSTRACT with type t := tval of_string : string -> tval to_string : t -> stringval to_json : t OpamJson.encoderval of_json : t OpamJson.decodermodule Set : OpamStd.SET with type elt = tmodule Map : OpamStd.MAP with type key = tval of_string_opt : string -> t optionval is_null : t -> boolCheck if hash contains only 0
val to_path : t -> string listreturns a sub-path specific to this hash, e.g. "md5/d4/d41d8cd98f00b204e9800998ecf8427e", as a list
val check_file : string -> t -> boolCompute the hash of the file and check it
val check_string : string -> t -> boolCompute the hash of the string and check it
Like check_file, but returns the actual mismatching hash of the file, or None in case of match