Module Bytesrw_md

SHA-1 and SHA-2 hashes (via conf-libmd)

This module provides support for the SHA-1 and SHA-2 hashes with the libmd C library.

Note. If you are already using Bytesrw_crypto rather use the hashes provided there. The selection of hashes is larger and the interface is largely compatible.

module type Sha = sig ... end

The type for SHA-1 and SHA-2 hashes.

module Sha_1 : Sha

SHA-1 hash.

module Sha_256 : Sha

SHA-256 hash.

module Sha_384 : Sha

SHA-384 hash.

module Sha_512 : Sha

SHA-512 hash.