Hash.AlgorithmHash algorithm identifiers.
The type for hash algorithm identifiers.
Use is_supported to see which ones are supported by the current implementation.
val is_supported : t -> boolis_supported a is true iff the current implementation supports the hash algorithm a.
val length : t -> intlength a is the length in bytes of hashes of algorithm a. Note that this can be 0 if the algorithm is unsupported.
val of_string : string -> (t, string) Stdlib.resultof_string s is an algorithm from s. Lowercased match of s against the identifiers specified in these comments.
val to_string : t -> stringto_string a is an ASCII string for a. Lowercased identifiers mentioned in these comments.
val pp : Stdlib.Format.formatter -> t -> unitpp formats algorithms for inspection.