upstream: github.com/mirleft/ocaml-x509
0
fork

Configure Feed

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

refactor(crypto): convert tests from OUnit2 to Alcotest, rename create to v

Convert all crypto test modules (test_base, test_cipher, test_dh,
test_dsa, test_numeric, test_rsa) from OUnit2 to Alcotest. Add .mli
files exporting suite values. Update dune build to use alcotest.

Rename Generator.create to Generator.v and Crypto_rng.create to
Crypto_rng.v following OCaml naming conventions. Update all callers
across crypto, tls, and x509.

+1 -1
+1 -1
lib/private_key.ml
··· 19 19 let g = 20 20 match seed with 21 21 | None -> None 22 - | Some seed -> Some Crypto_rng.(create ~seed (module Fortuna)) 22 + | Some seed -> Some Crypto_rng.(v ~seed (module Fortuna)) 23 23 in 24 24 match typ with 25 25 | `RSA -> `RSA (Crypto_pk.Rsa.generate ?g ~bits ())