package kdf

  1. Overview
  2. Docs
Key Derivation Functions: HKDF RFC 5869, PBKDF RFC 2898, SCRYPT RFC 7914

Install

Dune Dependency

Authors

Maintainers

Sources

kdf-1.0.0.tbz
sha256=d161582b0efe66d958dd6b8c9c21068e9f6454ce218377d6cf87823dec62e0ce
sha512=8c518494a7c2e030c079a22fc0d27e4dccd1b2d6edb8fcd2ee7121cdd3d56ff416a37876b6bb13b8be015922c3487536038373bfa0934a165055c1cb5dd3c2e1

doc/kdf.scrypt/Scrypt/index.html

Module ScryptSource

The scrypt Password-Based Key Derivation Function specifies the password-based key derivation function scrypt. The function derives one or more secret keys from a secret string. It is based on memory-hard functions which offer added protection against attacks using custom hardware.

Sourceval scrypt : password:string -> salt:string -> n:int -> r:int -> p:int -> dk_len:int32 -> string

scrypt_kdf password salt n r p dk_len is dk, the derived key of dk_len octets. n, the cost parameter, must be larger than 1 and a power of 2. p, the parallelization parameter, must be a possitive integer and less than or equal to 2^32 - 1 / (4 * r)

OCaml

Innovation. Community. Security.