• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Searching...
    Or go to: Standard Library API
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • sodium

  • Documentation
  • sodium lib
  • Sodium .Hash Module
package sodium
  • sodium
    • Sodium
      • Auth
        • Bigbytes
        • Bytes
        • S
      • Box
        • Bigbytes
        • Bytes
        • S
      • Generichash
        • Bigbytes
        • Bytes
        • S
      • Hash
        • Bigbytes
        • Bytes
        • S
      • One_time_auth
        • Bigbytes
        • Bytes
        • S
      • Password_hash
        • Bigbytes
        • Bytes
        • S
      • Random
        • Bigbytes
        • Bytes
        • S
      • Scalar_mult
        • Bigbytes
        • Bytes
        • S
      • Secret_box
        • Bigbytes
        • Bytes
        • S
      • Sign
        • Bigbytes
        • Bytes
        • S
      • Stream
        • Bigbytes
        • Bytes
        • S
Legend:
Library
Module
Module type
Parameter
Class
Class type
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 = Bytes.t
module Bigbytes : S with type storage = bigbytes

Footer

OCaml

Innovation. Community. Security.

GitHub Discord Twitter Peertube RSS

About Us

  • Industrial Users
  • Academic Users
  • Why OCaml

Resources

  • Get Started
  • Language Manual
  • Standard Library API
  • Books
  • Releases

Community

  • Blog
  • Jobs

Policies

  • Carbon Footprint
  • Governance
  • Privacy
  • Code of Conduct