package nocrypto

  1. Overview
  2. Docs

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

Short-hand functions

type hash = [
  1. | `MD5
  2. | `SHA1
  3. | `SHA224
  4. | `SHA256
  5. | `SHA384
  6. | `SHA512
]

Hashing algorithm.

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 S)
OCaml

Innovation. Community. Security.