package sodium

  1. Overview
  2. Docs
type hash
val primitive : string

Primitive used by this implementation. Currently "sha512".

val size : int

Size of hashes, in bytes.

val equal : hash -> hash -> bool

equal a b checks a and b for equality in constant time.

module type S = sig ... end
module Bytes : S with type storage = Stdlib.Bytes.t
module Bigbytes : S with type storage = bigbytes
OCaml

Innovation. Community. Security.