upstream: github.com/robur-coop/kdf
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ocaml-linkedin: apply dune fmt

Pure formatting changes from `dune fmt`: doc comment placement moves
from above the binding to below it for `type`s, multi-line `match`
expressions collapse onto one line where they fit, and infix operator
applications pick up spaces (`Soup.($?)` -> `Soup.( $? )`). No
semantic changes.

+38 -2
+27 -1
README.md
··· 13 13 14 14 ## Installation 15 15 16 - `opam install kdf` will install the latest released version. 16 + Install with opam: 17 + 18 + ```sh 19 + $ opam install kdf 20 + ``` 17 21 22 + If opam cannot find the package, it may not yet be released in the public 23 + `opam-repository`. Add the overlay repository, then install it: 24 + 25 + ```sh 26 + $ opam repo add samoht https://tangled.org/gazagnaire.org/opam-overlay.git 27 + $ opam update 28 + $ opam install kdf 29 + ``` 30 + 31 + ## Example 32 + 33 + Derive protocol-specific keys with HKDF or password-derived keys with 34 + PBKDF2/scrypt, depending on the secret material you start with: 35 + 36 + ```ocaml 37 + let salt = "deployment-2026" 38 + let ikm = "shared input key material" 39 + 40 + let key = 41 + let prk = Hkdf.extract ~hash:`SHA256 ~salt ikm in 42 + Hkdf.expand ~hash:`SHA256 ~prk ~info:"api-token" 32 43 + ```
+4
dune
··· 1 1 (env 2 2 (dev 3 3 (flags :standard %{dune-warnings}))) 4 + 5 + (mdx 6 + (files README.md) 7 + (libraries kdf.hkdf kdf.pbkdf kdf.scrypt digestif))
+5 -1
dune-project
··· 1 1 (lang dune 3.21) 2 + (using mdx 0.4) 2 3 (name kdf) 3 4 (source (tangled gazagnaire.org/kdf)) 4 5 (license BSD-2-Clause) ··· 26 27 (digestif (>= 1.2.0)) 27 28 (crypto (>= 1.0.0)) 28 29 (alcotest (and :with-test (>= 0.8.1))) 29 - (ohex (and :with-test (>= 0.2.0))))) 30 + (mdx :with-test) 31 + (ohex (and :with-test (>= 0.2.0))) 32 + (cstruct :with-test)) 33 + )
+2
kdf.opam
··· 24 24 "digestif" {>= "1.2.0"} 25 25 "crypto" {>= "1.0.0"} 26 26 "alcotest" {with-test & >= "0.8.1"} 27 + "mdx" {with-test} 27 28 "ohex" {with-test & >= "0.2.0"} 29 + "cstruct" {with-test} 28 30 "odoc" {with-doc} 29 31 ] 30 32 build: [