nocrypto
  1. Overview
  2. Docs
module type S = sig ... end
module MD5 : S
module SHA1 : S
module SHA224 : S
module SHA256 : S
module SHA384 : S
module SHA512 : S
type hash = [
  1. | `MD5
  2. | `SHA1
  3. | `SHA224
  4. | `SHA256
  5. | `SHA384
  6. | `SHA512
]
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)
val hash_of_sexp : Sexplib.Sexp.t -> hash
val sexp_of_hash : hash -> Sexplib.Sexp.t