This repository provides multiple already specified key derivation functions in and for OCaml:
kdf.hkdf
kdf.pbkdf
kdf.scrypt
API Documentation
opam install kdf will install the latest released version.
opam install kdf