Nocrypto.Hash
Hashes.
Each hash algorithm is contained in its own separate module.
module type S = sig ... end
A single hash algorithm.
module MD5 : S
module SHA1 : S
module SHA224 : S
module SHA256 : S
module SHA384 : S
module SHA512 : S
type hash = [
|
`MD5
`SHA1
`SHA224
`SHA256
`SHA384
`SHA512
]
Hashing algorithm.
Sexplib convertible.
Sexplib
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 S)