1{
2 lib,
3 buildDunePackage,
4 fetchurl,
5 digestif,
6 mirage-crypto,
7 alcotest,
8 ohex,
9}:
10
11buildDunePackage rec {
12 pname = "kdf";
13 version = "1.0.0";
14
15 src = fetchurl {
16 url = "https://github.com/robur-coop/kdf/releases/download/v${version}/kdf-${version}.tbz";
17 hash = "sha256-0WFYKw7+ZtlY3WuMnCEGjp9kVM4hg3fWz4eCPexi4M4=";
18 };
19
20 propagatedBuildInputs = [
21 digestif
22 mirage-crypto
23 ];
24
25 checkInputs = [
26 alcotest
27 ohex
28 ];
29 doCheck = true;
30
31 meta = {
32 description = "Key Derivation Functions: HKDF RFC 5869, PBKDF RFC 2898, SCRYPT RFC 7914";
33 homepage = "https://github.com/robur-coop/kdf";
34 license = lib.licenses.bsd2;
35 maintainers = [ lib.maintainers.vbgl ];
36 };
37}