• OCaml logo OCaml logo
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Learn
  • Packages
  • Community
  • Blog
  • Playground
  • Get started
  • nocrypto
  • Documentation
  • nocrypto lib
  • Nocrypto .Hash Module
package nocrypto
  • nocrypto
    • Nocrypto
      • Base64
      • Cipher_block
        • AES
          • CBC
          • CCM
          • CTR
          • ECB
          • GCM
        • Counter
        • DES
          • CBC
          • CTR
          • ECB
        • S
          • CBC
          • CCM
          • CTR
          • Core
          • ECB
          • GCM
      • Cipher_stream
        • ARC4
        • S
      • Dh
        • Group
      • Dsa
        • K_gen
          • 1-H
      • Hash
        • MD5
        • S
        • SHA1
        • SHA224
        • SHA256
        • SHA384
        • SHA512
      • Numeric
        • Int
        • Int32
        • Int64
        • S
        • Z
      • Rng
        • Generators
          • Fortuna
          • Hmac_drgb
            • Make
              • 1-H
          • Null
        • Int
        • Int32
        • Int64
        • Make_N
          • 1-N
        • S
          • Generator
          • N
        • Z
      • Rsa
        • OAEP
          • 1-H
        • PKCS1
        • PSS
          • 1-H
  • nocrypto_lwt
    • Nocrypto_entropy_lwt
  • nocrypto_unix
    • Nocrypto_entropy_unix
Legend:
Library
Module
Module type
Parameter
Class
Class type
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 = [
| `MD5
| `SHA1
| `SHA224
| `SHA256
| `SHA384
| `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)

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