module Hash:sig
..end
Each hash algorithm is contained in its own separate module.
module type S =sig
..end
module MD5:S
module SHA1:S
module SHA224:S
module SHA256:S
module SHA384:S
module SHA512:S
typehash =
[ `MD5 | `SHA1 | `SHA224 | `SHA256 | `SHA384 | `SHA512 ]
Sexplib
convertible.
val digest : [< hash ] -> Cstruct.t -> Cstruct.t
val mac : [< hash ] -> key:Cstruct.t -> Cstruct.t -> Cstruct.t
val digest_size : [< hash ] -> int
val module_of : [< hash ] -> (module Nocrypto.Hash.S)