package sodium

  1. Overview
  2. Docs
type storage
val of_hash : hash -> storage

of_hash h converts h to storage. The result is size bytes long.

val to_hash : storage -> hash

to_hash s converts s to a hash.

  • raises Size_mismatch

    if s is not size bytes long

val digest : storage -> hash

digest m computes a hash for message m.